Trouble getting orderBy = 'display_desc' working in auto_nav breadcrumbs
Permalink
Hi There,
This particular site I'm working on requires the breadcrumbs to work as a kinda "You are here" section which works better if the order of the crumb items could be reversed.
I've changed the auto_nav call to this:
I've checked the order of the output markup incase I was floating the crumb li's but I can't seem to get the crumbs outputting the opposite way if that makes sense.
Does anyone know what I might be doing wrong?
Cheers
Ben
This particular site I'm working on requires the breadcrumbs to work as a kinda "You are here" section which works better if the order of the crumb items could be reversed.
I've changed the auto_nav call to this:
<ul class="breadcrumb"> <li>YOU ARE HERE: </li> <?php $bt_main = BlockType::getByHandle('autonav'); $bt_main->controller->displayPages = 'top'; $bt_main->controller->orderBy = 'display_desc'; // display_asc, display_desc, chrono_asc, chrono_desc, alpha_desc $bt_main->controller->displaySubPages = 'relevant_breadcrumb'; $bt_main->controller->displaySubPageLevels = 'all'; $bt_main->controller->displayPagesIncludeSelf = 1; $bt_main->render('templates/bs_crumbs'); ?> </ul>
I've checked the order of the output markup incase I was floating the crumb li's but I can't seem to get the crumbs outputting the opposite way if that makes sense.
Does anyone know what I might be doing wrong?
Cheers
Ben