SimplePortal

Customization => Custom Coding => Topic started by: Snoopix on January 17, 2014, 01:41:56 AM

Title: show a certain categories of articles on portal (not all)
Post by: Snoopix on January 17, 2014, 01:41:56 AM
Hi guys, i want show a certain categories but i don't know how do it

if disable "Publish on Portal" on "edit category" options, then i can't add topics as article using this category and display this category on a block...

maybe the question has already been solved, but not found, sorry  =/
Title: Re: show a certain categories on portal (not all)
Post by: AngelinaBelle on January 17, 2014, 10:27:33 AM
This requires customization.
I have customized the portal page to not show the articles.

Then I added a couple of article blocks.
I used a customized article block -- one which can show just one category of article.

I think that, in the future, I would hope to see
1) The portal page be like any one of the simpleportal pages, not forcing articles into the central section of the page.
2) An article block which permits making a selection of one, several, or all categories of articles.

I will be excited to find out what will be developed in the next version of Simple Portal.
Title: Re: show a certain categories of articles on portal (not all)
Post by: [SiNaN] on January 24, 2014, 03:44:05 PM
If you want to be able to add articles to categories that are not published on portal, this change should do it:

Sources/PortalArticles.php

Code: (Find) [Select]
$context['list_categories'] = getCategoryInfo(null, true);
Code: (Replace) [Select]
$context['list_categories'] = getCategoryInfo(null, false);
And I think I've added the option to choose a particular category to display for articles block in the recent versions.
Title: Re: show a certain categories of articles on portal (not all)
Post by: AngelinaBelle on January 30, 2014, 08:10:33 AM
Silly, silly me.  I need to get with the updates, and stop using my out-of-date custom block!
Thanks, [SiNan].
SimplePortal 2.3.8 © 2008-2024, SimplePortal