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?
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?
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');
This did the trick:
$bt->controller->displaySystemPages = true;
$bt->controller->displaySystemPages = true;
It should look something like this: