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

johnalbin’s picture

Title: Allow basic functionality without theme modification » Allow functionality without theme modification

Looking 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.

nicholasthompson’s picture

Status: Active » Postponed

Unfortunately, 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...

nicholasthompson’s picture

Status: Postponed » Fixed

Fixed for Zen themes in D5 and the D6 branch contains the code to allow use in D6 without modification of themes.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.