AutoNav Breadcrumb Issue
Permalink
I am having an issue with autonav & breadcrumbs. No matter how I code I can't get it to do what I want. I want it to look like this
HOME // SUBPAGE // CURRENT PAGE
My current PHP theme for auto nav looks like
Ideally I want the output code to appear as
I am lost and need some help. Please
Thanks,
Andrew
HOME // SUBPAGE // CURRENT PAGE
My current PHP theme for auto nav looks like
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $aBlocks = $controller->generateNav(); $c = Page::getCurrentPage(); $nh = Loader::helper('navigation'); $i = 0; foreach($aBlocks as $ni) { $_c = $ni->getCollectionObject(); if (!$_c->getCollectionAttributeValue('exclude_nav')) { $pageLink = false; if ($_c->getCollectionAttributeValue('replace_link_with_first_in_nav')) { $subPage = $_c->getFirstChild(); if ($subPage instanceof Page) { $pageLink = $nh->getLinkToCollection($subPage); }
Viewing 15 lines of 30 lines. View entire code block.
Ideally I want the output code to appear as
<ul class="breadcrumbs"> <li><a href="link">Home</a></li> <li><a href="link">Sub Page</a></li> <li><a href="link">Sub Page</a></li> <li class="current"><a href="link">Current Page</a></li> </ul>
I am lost and need some help. Please
Thanks,
Andrew