On this page:
The title tag is a single tag which is used to return the title of the article being displayed. It is usually used in an ‘article’ type form.
Tag will accept the following attributes (case-sensitive):
- Control widows and overrule ‘widows’ setting in the Preferences administration panel.
0allow the last word in the title to appear on its own line, i.e. the title content is rendered unchanged,
1ensure the last word is not left on its own line - Textpattern inserts an invisible code (a non-breaking space) between the last two words.
- Default: as set in the Preferences administration panel.
Example 1: Display an article title
<h1> <txp:title /> </h1> <p> <txp:author /> at <txp:posted /> </p> <txp:body />
Shows the current article title as the page heading, a few other pieces of information such as the article’s author and posted date, then the article body itself.
Example 2: Display a hyperlinked title
<txp:permlink> <txp:title /> </txp:permlink>
Wraps a permanent link to the current article around its title.
Other tags used: permlink.