Prints the page title and, when necessary, the online store name.
Kuvaus
Page titles are determined automatically. For instance, the title of a product page is the name of the product it presents.
If necessary, the page title – {PageTitle} – can be set manually using the Web Designer extension.
Syntaksi
{Title( shop_name: boolean )}Näkyvyys
Toimii näkyvyydessä: globaali
It is possible to use global visibility tags in any page template and within any tag.
The format of the <title> element
... <head> <title>{Title}</title> ... In the example, the page title and the name of the online store are printed. The default value of the shop_name attribute in the {Title} tag is true, so in this case, it does not need to be set separately.
... <head> <title>Shipping conditions | MyCashflow Demo Store</title> ... Above you can see the tag's default output.
... <head> <title> {Title(shop_name: false, after: ' | {%TitleSuffix}')} </title> ... The above markup also retrieves the page title but without the online store name.
Instead, other contents can be added after the title by using the after attribute. The dictionary includes the 'TitleSuffix' code with contents that should be displayed in the title element on each page of the online store. The content is retrieved using the short syntax of the {Text} tag.
Attribuutit
shop_name:Defines whether the online store name should be printed in addition to the page title.
A vertical line is used as a separator between the page title and the store name.
Allowed values: true/false. Default value: true.
before/after:With the
beforeandafterattributes, you can define content that is output before or after the content produced by the tag.Allowed values: text that may contain HTML and Interface markup.
E.g.
before:'<p>This markup appears before the tag's own content.</p>'.after:'<p>This appears after the tag's own content.</p>'
If the tag does not produce any content, the content of the
beforeandafterattributes will also not be displayed.escape:Adds an escape character before quotation marks in the output. The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values: true/false. The default value is false.
or:Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values: text that may contain HTML and Interface markup.
E.g.
or:'Content not found.'
