The Title Override module allows you to change page titles on nodes and generic pages. The module is really useful if you need to change a page title within the administration section of Drupal.
By using Title Override, you can manage simple page title changes in a single interface and avoid having glue code all over the place. That being said this module is great at handling static changes to a title. However, if you need to modify a specific content type title with a custom token then look at the Page Title module.
In this article, I’ll show you how to change page titles and individual node titles. I will use the stable 7.x-1.1 version for this article. The 7.x-2.x version does not have a stable release yet but looks promising because it’ll have Token support.
Getting Started
This module is very easy to setup, just download and install the Title Override module.
How To Modify Titles
First, I’ll show you how to change the “Add content” link on the admin/content
page to “Create content”.
1. Go to Configuration -> “Title Override” (admin/config).
2. Enter in system|node/add|Create content
into the “Title Override” text area and click on “Save and clear caches”.
The format to change a generic page should be system
, then a path and then the title.
If you need to change the title on the Modules page, then add system|admin/modules|My Modules
.
3. If you click on the Content button in the toolbar you should see the link “Create content”.
Now, we’ll change the title of a node. Go ahead and create a test node.
4. Go back to the Title Override configuration page and enter in node|1|My Custom Title
into the “Title Override” text area on the next line.
Now, if you go to node/1
the page title should be “My Custom Title”.
The module stores whatever is entered into the “Title Override” field in a variable called title_overrides
. If you’re using Features to manage site configuration then just export the variable using Strongarm.
If you have any questions, please leave a comment.
It does all this and more http://drupal.org/project/metatag with token support
This seems to be using drupal_set_title() which affects the visible page title to the user. This isn’t necessarily for the HTML
I didn’t look closely enough at what was actually being changed.
All the same…folks should look at metatag more 🙂
Great! I was trying to do this just now 😀
Thank you.