I´ve been working on a website with Quark. It´s awesome but I need some help on this:
The webpage has a second menu (based on virtuemart category menu), the primary menu highlight the active menu item, but in the second menu (virtuemart) don´t highlight on active item.
I tried this code on modules/mod_virtuemart/category/tmpl/default.php
- Code: Select all
<?php
$mydoc = JFactory::getDocument();
$mytitle = $mydoc->getTitle();
if ($mytitle === $cattext) {
$active = 'class="active"';
}
else {
$active = '';
}
?>
But not work. Can you help me guys?