Breadcrumbs no longer working after updating from 5.7.5.13 to 8.2.1

Permalink
So after updating a site from 5.7.5.13 to 8.2.1 this no longer works:

<?php
    $bt = BlockType::getByHandle('autonav');
    $bt->controller->displayPages = 'top'; // 'top', 'above', 'below', 'second_level', 'third_level', 'custom', 'current'
    $bt->controller->displayPagesCID = ''; // if display pages is set ‘custom’
    $bt->controller->orderBy = 'display_asc';  // 'chrono_desc', 'chrono_asc', 'alpha_asc', 'alpha_desc', 'display_desc','display_asc'
    $bt->controller->displaySubPages = 'relevant_breadcrumb';  //none', 'all, 'relevant_breadcrumb', 'relevant'
    $bt->controller->displaySubPageLevels = 'all'; // 'enough', 'enough_plus1', 'all', 'custom'
    $bt->controller->displaySubPageLevelsNum = ''; // if displaySubPages is set 'custom'
    $bt->render('templates/breadcrumb'); // for template 'templates/template_name';
?>


It returns absolutely nothing on the page. Has anything changed? Are breadcrumbs not displayed this way anymore?

Skovsgaardgrafisk
View Replies:
c5dragon replied on at Permalink Reply
c5dragon
Copy paste in one of my templates, and it works (8.2.1)
Do you get any errors? Did you edit the template?
Skovsgaardgrafisk replied on at Permalink Reply
Skovsgaardgrafisk
Which templates are you referring to? :)
c5dragon replied on at Permalink Reply
c5dragon
concrete/blocks/autonav/templates//breadcrumb.php is the original.

Maybe it is overridden in a theme or the application folder.