Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
When you create a variant for node view and use token for title, the title variable on breadcrumb will use the variant label.
Ex:
The breadcrumb is: Home >> Node view
I hacked breadcrumb preprocess and changed the title.
function MYTHEME_preprocess_breadcrumb(&$variables) {
if (($node = \Drupal::routeMatch()->getParameter('node')) && $variables['breadcrumb']) {
$variables['title'] = $node->getTitle();
}
}
Any idea why breadcrumbs is not reading the token title.
Comment | File | Size | Author |
---|---|---|---|
Screen_Shot_2016-01-26_at_11_36_35_AM.png | 30.61 KB | m.abdulqader |
Comments
Comment #2
japerryRelated to #2647104: Improve panel title support
Comment #3
m.abdulqader CreditAttribution: m.abdulqader at Vardot commentedAfter debugging the code this issue is related to page manager and not panels, in all cases we need to enhance title support for panels.
Related to #2665328 Variants take entity label not the variant title
Comment #4
DamienMcKenna