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.
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
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.
Like what you see?
Join our free email list and receive the following:
- Discover our best tutorials in a 6 part series
- Be notified when free content is published
- Receive our monthly newsletter