Autonav block template
Permalink
I have been learning to use custom templates for the autonav block especially the one's that use jQuery.
For example I am trying to use this template by Stu Nicholshttp://www.stunicholls.com/menu/jquery-slide-1.html#url...
I have had no sucess yet, this is how the code in my template file looks like, would appreciate if someone could point what I am doing wrong here. The css for this particular menu has been added to my theme css file, also created the view.js, not included the jQuery file.
view.php
For example I am trying to use this template by Stu Nicholshttp://www.stunicholls.com/menu/jquery-slide-1.html#url...
I have had no sucess yet, this is how the code in my template file looks like, would appreciate if someone could point what I am doing wrong here. The css for this particular menu has been added to my theme css file, also created the view.js, not included the jQuery file.
view.php
<? defined('C5_EXECUTE') or die(_("Access Denied.")); $aBlocks = $controller->generateNav(); global $c; if ($c->isEditMode()) { echo("<dl id=\"nav\" style=\"position:inherit!important;\"><dt class=\"b\">"); } else { echo("<dl id=\"nav\"><dt>"); } $nh = Loader::helper('navigation'); foreach($aBlocks as $ni) { $_c = $ni->getCollectionObject(); if (!$_c->getCollectionAttributeValue('exclude_nav')) { $thisLevel = $ni->getLevel();
Viewing 15 lines of 46 lines. View entire code block.