Breadcrumbs for single pages

Permalink
How do breadcrumbs work for single pages?

I'm trying to customize the /profile/edit single page, but the breadcrumb trail only shows 'Home'. Is it possible to add a link to the trail array, or am I missing something?

A3020
View Replies: View Best Answer
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
What code are you using?
It should look something like this:
<p>
            <?php
            $bt = BlockType::getByHandle('autonav');
            $bt->controller->displayPages = 'top';
            $bt->controller->orderBy = 'display_asc';                    
            $bt->controller->displaySubPages = 'relevant_breadcrumb';
            $bt->controller->displaySubPageLevels = 'all';                   
            $bt->render('templates/breadcrumb');
            ?>
</p>
A3020 replied on at Permalink Reply
A3020
I use this code:

$breadcrumbs = BlockType::getByHandle('autonav');
$breadcrumbs->controller->displayPages = 'top';
$breadcrumbs->controller->orderBy = 'display_asc';                    
$breadcrumbs->controller->displaySubPages = 'relevant_breadcrumb';  
$breadcrumbs->controller->displaySubPageLevels = 'all';
$breadcrumbs->render('templates/breadcrumb');
A3020 replied on at Permalink Best Answer Reply
A3020
This did the trick:

$bt->controller->displaySystemPages = true;