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.
If you create a menu link to a term, where the term name is not equal to the menu name, the menu name is displayed on the page instead of the term name.
In the default implementation of the function taxonomy_term_page($term), the term name will be set by using the following code:
// Assign the term name as the page title.
drupal_set_title($term->name);
So, when i enable taxonomy_display, the page title is not the terms name, because this line is missing in taxonomy_display_taxonomy_term_page().
Comment | File | Size | Author |
---|---|---|---|
#1 | taxonomy_display-term-name-not-used-for-title-1811426-1.patch | 669 bytes | codycraven |
Comments
Comment #1
codycraven CreditAttribution: codycraven commentedInteresting... I apparently didn't notice that about taxonomy_term_page().
In taxonomy_display_menu_alter() the title callback is set to: taxonomy_display_taxonomy_term_title which does:
Which I thought would be sufficient... I'm a little bit torn about this, but I guess what taxonomy_term_page() is doing is the expected functionality.
Commit to follow.
Comment #2
codycraven CreditAttribution: codycraven commentedCommit pushed to Drupal.org git repo.