Hi, I screwed to the standard module "list of categories (menu)" in k2_tools an accordion menu(used accordion menu from www.i-marco.nl/weblog/).1. File \modules\mod_k2_tools\tmpl\categories.php add before <?php echo $output; ?> this line <ul class="menu accordion collapsible"> and after <?php echo $output; ?> this line </ul>2. File File \modules\mod_k2_tools\helper.phpand add before this line "modK2ToolsHelper::treerecurse($params, $row->id, $level + 1);" this line$output .= '<ul class="acitem'.$level.'">'; and after "modK2ToolsHelper::treerecurse($params, $row->id, $level + 1);" add this line $output .= '</ul>';3. In head of your index.php theme file add this:<script src="<?php echo $template_url; ?>/js/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="<?php echo $template_url; ?>/js/menu.js" type="text/javascript"></script>4. Load the file menu.js and jquery-1.4.2.min.js to the your template js folder.5. load the file style.css to your template css folder.
works for me.But
one problem, I don `t know how to get to highlight and expand the
active category when you are on a page describing a particular product.Прослушать
На латинице
For example, at this page active category expanding _http://tds2010.com.ua/catalog/loktayt/fiksatory.html , but at detailed description of the position in this category, the active category is not highlighted and not disclosed, for example _http://tds2010.com.ua/loktayt/fiksatory/fiksatory-rezbovye/loktayt-638/10ml.html. Can anyone help in this problem? How can i add the root category ul class="active".Thank You.Sorry for my english and great thanks for this component!Alexander Ukraine
<br/> <ul class="menu accordion collapsible"><br/> <?php echo $output; ?><br/> </ul><br/> $output .= '<ul class="acitem'.$level.'">'; modK2ToolsHelper::treerecurse($params, $row->id, $level + 1); $output .= '</ul>';works for me.But
one problem, I don `t know how to get to highlight and expand the
active category when you are on a page describing a particular product.Прослушать
На латинице
For example, at this page active category expanding _http://tds2010.com.ua/catalog/loktayt/fiksatory.html , but at detailed description of the position in this category, the active category is not highlighted and not disclosed, for example _http://tds2010.com.ua/loktayt/fiksatory/fiksatory-rezbovye/loktayt-638/10ml.html. Can anyone help in this problem? How can i add the root category ul class="active".Thank You.Sorry for my english and great thanks for this component!Alexander Ukraine