Customization > Custom Coding

How to organize and show 1000+ content articles/tutorials on SP?

(1/1)

farseer:
I am setting up a new website with an integrated forum (SMF + SimplePortal). To cut to the chase, I need to put around a 1000 articles/tutorials on my website organized under various categories. The user should be able to browse those categories via blocks placed on the sidebars.

My question is how should I go about organizing my content on SimplePortal? Should I create a 1000 custom pages or articles? Is SimplePortal the right platform to publish so much content? Or should I drop it in favor of Wordpress/Joomla etc?

♦ Ninja ZX-10RR ♦:
Hi and welcome to SimplePortal.

Our next release will include a way to subdivide pages into categories, and should help you to organize your content in a better way. For now, you can still create individual pages, but you will not be able to divide them into categories within SimplePortal itself.
Nonetheless, it's still great, because they are organized in alphabetical order, so you can still find what you want pretty easily ;)

Regards

westwegoman:
+1 on this idea. I would love to see this. It would allow me to completly navigate away from Wordpress and have everything on one platform.

Any idea when this may be implemented?

Chen Zhen:

Imo it would be best to know some basic PHP skills to accomplish this request.
One way to do it is to create a custom PHP page that contains an array of keys (article names) which contain your specific article data.
You use the $_REQUEST variable to select which key to display (echo $my_array['article1']).

On a separate php or html block you have a list (ie. drop-down) with the article names including a corresponding link that includes your specific keys in the url ($_REQUEST will detect which one was selected).

Chen Zhen:
Simple Portal page type: PHP
name: articles


--- Code: ---$selectedArticle = !empty($_REQUEST['item']) ? abs((int)$_REQUEST['item']) : 0;

if (!empty($articles[$selectedArticle]))
echo $articles[$selectedArticle];

$articles = array(
0 => 'This is article 0',
1 => 'This is article 1',
2 => 'This is article 2',
3 => 'This is article 3',
);

--- End code ---


Simple Portal block type: HTML


--- Code: ---<div>
Choose an article:
<div style="padding-left: 20px;display: inline;">
<select size="1" name="article_links" onchange="window.location.href=this.value;">
<option value="http://www.mywebsite.com/index.php?page=articles;item=0">Article #0</option>
<option value="http://www.mywebsite.com/index.php?page=articles;item=1">Article #1</option>
<option value="http://www.mywebsite.com/index.php?page=articles;item=2">Article #2</option>
<option value="http://www.mywebsite.com/index.php?page=articles;item=3">Article #3</option>
</select>
</div>
</div>

--- End code ---

Navigation

[0] Message Index

Go to full version