The page_title tag is a single tag that displays title text depending on the context it is used. Its primary purpose is for outputting information suitable for the HTML
Results appear as follows:
- Article list:
Your site name.
- Articles by category:
Category title | Your site name.
- Search results page:
Search results: Search term | Your site name.
- Single article page:
Article name | Your site name.
- Comments display:
Comments on: Article name.
Page numbers are included in paginated pages (e.g. search results extending to >1 page).
Tag will accept the following attributes (case-sensitive) as well as the global attributes :
- The character sequence you want between each piece of information.
Example 1: Show page titles with custom separator
<title> <txp:page_title separator=" » " /> </title>
separator attribute changed to a pipe (was colon).