Closed (fixed)
Project:
Page Title
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 Aug 2007 at 22:07 UTC
Updated:
31 Jul 2008 at 04:46 UTC
Currently the installation instructions require the modification of the theme.
This installation dependency is due to the PHPTemplate engine setting the $head_title to drupal_get_title() .' | '. variable_get('site_name') inside phptemplate_page(). The only way to modify the pattern used in the $head_title variable is within the theme via _phptemplate_variables().
However, at the very least we can have drupal_get_title() return a node’s page_title by calling drupal_set_title() inside hook_nodeapi().
Long story short…
If a user didn’t modify the theme, the node’s “Page title” would still show up in the <title> tag.
Comments
Comment #1
johnalbinLooking at this some more, I see that PHPTemplate also sets the $title using the same
drupal_get_title(), so the method I described won’t work.I’m going to investigate further.
Comment #2
nicholasthompsonUnfortunately, I dont know of any other way to access the head_title as Drupal doesn't exactly expose it very well!
Marking this as postponed until Drupal exposes the head_title without needed phptemplate page access...
Comment #3
nicholasthompsonFixed for Zen themes in D5 and the D6 branch contains the code to allow use in D6 without modification of themes.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.