InterJinn

Development Framework For PHP

Embed: {jinn:pageTitle}

Abstract

This embed is very simple. When encountered the title of the document and the site name will be expanded together. The title is the same title as described in the page_patterns database table. The site name should be defined as a property for the project at the root level. If no site name is defined then this embed will function like the {jinn:title} embed.

Attribute - reverse

If this value is set to 1 then the order of the title and the site name in the output will be reversed.

Example:
<jinn:pageTitle reverse="1"/>
Output:
InterJinn - TemplateJinn

Attribute - glue

Normal the site name and the page title are glue together by a hyphen. TO change this you can set the glue paramater to the any string you would prefer.

Example:
<jinn:pageTitle glue="..."/>
Output:
TemplateJinn...InterJinn

With no attributes being set then the embed is trivial and the default output format is used.

Example:
<jinn:pageTitle/>
Output:
TemplateJinn - InterJinn