Category list not working SOLVED

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

Category list not working SOLVED

Postby Tadek888 » Tue Sep 17, 2013 9:48 am

Hello i use skinny theme.
When adding a new category in the panel is visible. On the front, however, did not show up: (
Using latest pivotx blog 2.3.7
Please help

SOLUTION :

// Config set
allow_php_in_templates = 1

// file : templates/skinny/_sub_sidebar.tpl

[[php]]
global $PIVOTX;

$host = $PIVOTX['config']->get('canonical_host');
$blog = '/blog/category/';

$allcats = $PIVOTX['categories']->getCategories();
foreach($allcats as $cat) {
if($cat['hidden'] < 0){
$menucategory .= '<li><a href="' . $host . $blog . $cat['name'] . '" style="text-decoration:none;">' . $cat['display'] . '</a></li>';
}
}

echo $menucategory;
[[/php]]
Tadek888
 
Posts: 5
Joined: Tue Sep 17, 2013 9:41 am

Re: Category list not working SOLVED

Postby Harm10 » Wed Sep 18, 2013 4:21 pm

Although you have a working solution I'd like to tell that you probably forgot to allocate the new category to one of the subweblogs in your weblog definition.
In the case of theme Skinny this is subweblog "standard".
All categories allocated to the subweblogs in a weblog will be shown when using the tag category_list (which is used in _sub_sidebar.tpl).
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Bugs

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron