How can I make it that only categories with published items show up in the Module (cat. menu list version)?
11 years 2 months ago #146803
foreach ($rows as $row)
{
if ($params->get('categoriesListItemsCounter'))
{
$itemnumber = modK2ToolsHelper::countCategoryItems($row->id);
}
if ($itemnumber==0)
{
$active = ' class="hidden"';
}
else
{
if (($option == 'com_k2') && ($view == 'itemlist') && ($catid == $row->id))
{
$active = ' class="activeCategory"';
}
else
{
$active = '';
}
}
if (modK2ToolsHelper::hasChildren($row->id))Edited 11 years 1 month ago by Krikor Boghossian
Log in or create an account to reply.