Page 1 of 1

Category list not working SOLVED

PostPosted: Tue Sep 17, 2013 9:48 am
by Tadek888
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


// Config set
allow_php_in_templates = 1

// file : templates/skinny/_sub_sidebar.tpl

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;

Re: Category list not working SOLVED

PostPosted: Wed Sep 18, 2013 4:21 pm
by Harm10
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).