SimplePortal

Customization => Custom Coding => Topic started by: farseer on June 01, 2016, 08:34:50 AM

Title: How to organize and show 1000+ content articles/tutorials on SP?
Post by: farseer on June 01, 2016, 08:34:50 AM
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?
Title: Re: How to organize and show 1000+ content articles/tutorials on SP?
Post by: ♦ Ninja ZX-10RR ♦ on June 01, 2016, 10:46:26 AM
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
Title: Re: How to organize and show 1000+ content articles/tutorials on SP?
Post by: westwegoman on February 20, 2017, 02:10:50 PM
+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?
Title: Re: How to organize and show 1000+ content articles/tutorials on SP?
Post by: Chen Zhen on February 20, 2017, 04:37:06 PM

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).
Title: Re: How to organize and show 1000+ content articles/tutorials on SP?
Post by: Chen Zhen on February 20, 2017, 05:25:40 PM
Simple Portal page type: PHP
name: articles

Code: [Select]
$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',
);




Simple Portal block type: HTML

Code: [Select]
<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>
SimplePortal 2.3.8 © 2008-2024, SimplePortal