Prints the page title.

Kuvaus

The page title is determined automatically based on to the type of the page. On a product page, for example, the product name functions as the page title by default (though on the product form, you can also define the page title expressly for search engine optimization).

You may want to use this tag especially on the general content page, which is used for displaying pages thathave their own template in the theme.

The page title can be specified manually if the Web Designer extension has been enabled in the store.

Syntaksi

{PageTitle}

Näkyvyys

Toimii näkyvyydessä: globaali

It is possible to use global visibility tags in any page template and within any tag.

Specifying the page title by using the {PageTitle} tag

... <body> ... <h1> {PageTitle} </h1> 

Most commonly, the {PageTitle} tag is added as is to the main heading element of the page. In this way, the element can be reused, when necessary, on all pages of the online store.

... <body> ... <h1> {PageTitle} {ProductBrand( before: ' | ' )} </h1> 

Depending on the page, in addition to the {PageTitle} tag, other content can also be used in the title. For example, on the product page, the brand name can be added to the title by using the {ProductBrand} tag. By using the before attribute, separators are added before the brand name, which are not displayed if {ProductBrand} does not produce content (the brand is not set).

Attribuutit

before/after:

With the before and after attributes, 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 before and after attributes 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.'