When using term_view override page in page manager, the page title that is shown uses the "menu title" instead of term name IF the term has a menu item attached to it. This little patch solves this issue. The same occurs in node_view and I´ve supplied a patch for that as well in: http://drupal.org/node/1097278.
Also there is a drupal_set_title() "missing" in the taxonomy_term_page() inside a core file; drupal/modules/taxonomy.pages.inc", so the same issue will apply to "non-panels" term pages.but I will supply a patch for that as wellThere was already an issue about this; http://drupal.org/node/1041906.
However this patch for page manager is not depending on the core patch to be done since page manager uses its own page callback to render the page.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | use_term_name_as_page_title-1303446-1.patch | 537 bytes | bobodrone |
Comments
Comment #1
bobodrone commentedhere is the patch.
Comment #2
merlinofchaos commentedthe term_node task handler appears to be experiencing a similar problem.
Using drupal_set_title() to see if it's empty does not seem like the proper solution. If we follow the pattern elsewhere, we should just call drupal_set_title() first, and then if it's changed, so be it. That'll prevent the menu title from taking over.
Comment #3
merlinofchaos commentedI went and did exactly what the original taxonomy_term_page() function does which is to just set the title right away and let whatever follows happen. Committed and pushed.
Comment #4.0
(not verified) commentedremoved a line and added link to where core taxonomy issue can be found.