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,
I've noticed that when I have a list of teasers, whether generated manually or by views, the title of the page changes to the title of the last teaser. Somewhere the drupal_set_title function is called on a teaser. Where can I change that and only have this happen on a full-node view?
Thanks,
Andrey.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedCheck the theme page.tpl.php and node.tpl.php file. The title should only be set in the page.tpl.php file.
Comment #2
mr.andrey CreditAttribution: mr.andrey commentedHmmm.. I just disabled Organic Groups, and all the page titles show up as they're supposed to.
I'll refile this under OG, see if anyone else is experiencing this.
Thanks,
Andrey.
Comment #3
phasmaphobic CreditAttribution: phasmaphobic commentedI am experiencing the same thing, with the same results if I disable OG. The "teaser list" always returns the last entry on the list's title as the full page title.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedmaybe this is a Views bug. og does not set a title unless $page is TRUE. see og_nodeapi