Closed (fixed)
Project:
Page Title
Version:
5.x-2.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2009 at 22:50 UTC
Updated:
7 Dec 2009 at 22:40 UTC
I am surprised since everything is pretty straight forward, I am putting [term-raw] | [title-raw] in my content type but the titlle (i.e. ) is still showing only title of the page and NOT adding the term name in it. Any idea ?
Comments
Comment #1
Pushkar Gaikwad commentedI am on drupal 5.19, is this a problem ? I don't see why this will be a problem though
Comment #2
iris_support commentedDownload the module as usual (untar in sites/all/modules)
Enable the module via Drupal (in Administer > Build > Modules)
In drupal 5 version of page_title, it's just not enough if you enable the module, you also need to make few changes in your active theme's template.php.
Check whether there is a function named
_phptemplate_variables($hook, $vars)exits in template.php. Function name can be either theme engine name(phptemplate) or theme name (for eg., garland). This function_phptemplate_variables($hook, $vars)is used to overwrite or insert PHPTemplate variables into the template files.If the function is present then insert the following code in the same.
If the function _phptemplate_variables($hook, $vars) is not present add the following code
So what are we doing here?
Unlike drupal 6, $head_title variable cannot be changed while it's being generated by drupal. So we change the $head_title variable in the tempate.php in drupal 5. This function
page_title_page_get_title()present in page_title.module gets the value of the page title according to the pattern you have set.Hope this helps!
Comment #3
nicholasthompsonMarking as fixed - no reply in over 2 months...