The word "title" is a bit overloaded. Every piece of content in Drupal has a title, and so does every page. The page title is the one found in the HTML head inside the <title> tag. It is also used on SERPs (Search Engine Result Pages) and can greatly enhance your websites SEO (Search Engine Optimization).
This module gives you granular control over the page title. You can specify patterns for how the title should be structured and, on content creation pages, specify the page title separately to the content's title.
Page Title 2
What features are in Page Title 2?
page=2 in the query string will also have an optional token pattern suffixed onto the end of it. Important: for this feature to work properly, you need to be running Token 1.12 or later. Views Integration: Paeg Title provides its own Page Display which allows you to provide a Page Title separately to the normal Title. There is also an option to provide a Page Title for each argument as well. This feature is still early and in need of testing. Feedback would be appreciated!Handy modules which work with Page Title
There are now a few modules which help you use Page Title to get the best out of your SEO.
Testing
The Drupal 6 and 7 branches now both come equipped with a SimpleTest. This should help keep the module stable during development, however I would appreciate any feedback on the tests (eg, where is it lacking? What could I test better, and (importantly) how?).
Page Title API
Introduced in version 2.4, the module now has an API. There are 3 exposed hooks which allow your own module to alter the Page Title Pattern, Page Title token value and add settings to the Settings page.
The 3 hooks are:
hook_page_title_pattern_alter(&$pattern, &$types) hook_page_title_alter(&$title) hook_page_title_settings()I am in the process of writing up some developer documentation on this but, in the mean time as a basic example of how to use the 3 hooks, see the implementations for core module support, such as the node module support.
Drupal version specific notes
-
Drupal 5
-
Due to Drupal 5's theming system, in addition to the normal installation steps, this module requires you to edit your theme’s template files. Installation information can be found in the documentation installation section.
Development for the Drupal 5 branch has ceased as 5.x-2.3 - I simply to not have the time to backport all the work to Drupal 5, especially now Drupal 7 released and Drupal 5 is no longer supported.
-
Drupal 6
-
The above does not apply to Drupal 6. You no longer need to change your theme due to Drupal 6's improved theming API! Thanks to wayland76 for pointing this out.
Views integration is here!. You can finally start to work on the SEO of your views Listing pages!
-
Drupal 7
-
There is now an official release for Drupal 7. Both the Drupal 6 and Drupal 7 branch in feature-sync.
-
Accessibility
I have approved the request to make this module as accessibly as possible my mglifford in his issue requesting improved accessibility (#D7AX). I am not an accessibility specialist, so any assistance here is appreciated.
Known issues/incompatibilities
There were previously issues with Fusion based themes. This has been resolved in Fusion 6.x-1.12.
