Prints content produced and used by extensions. The {Extensions} tag is recommended to be used instead of the extensions' own tags.
Kuvaus
This tag is required. If you don't include the tag in your store theme, it'll be much more difficult to use and maintain your online store.
Examples of contents produced by extensions are Facebook's Open Graph data and Google Analytics' (and other tracking tools') scripts.
If your online store uses extensions, make sure to use the {Extensions} tag in your theme.
The {Extensions} tag is placed as needed in different parts of the HTML document (see detailed instructions).
Näkyvyys
Toimii näkyvyydessä: globaali
This tag can be used only at the end of the <head> element or at the beginning of the <body> element. See detailed instructions below.
Adding extensions to the store theme
The {Extensions} tag is used to add the requirements for using multiple MyCashflow extensions in the online store theme. The following examples illustrate the use of the tag. In all ready-to-use MyCashflow store themes, the tag has been used as in the examples.
Make sure that the theme includes both of the following markups so that all the tools and components required by extensions are available in the theme.
In the <head> element, the tag is added just before the end of the element with the attribute for: 'head'.
{Extensions(
for: 'head'
)}
</head>
<body> When printing to the <body> element, the tag is placed immediately after the opening <body> tag and the attribute for: 'body' is set.
</head>
<body>
{Extensions(
for: 'body'
)} Hiding product information from Google Search
You can hide the product information of an online store from Google Search by setting the attribute exclude: 'schema' for the {Extensions} tag.
The attribute removes from the page MyCashflow's Schema.org markup, from which Google reads product information for its search results.
... {Extensions( for: 'head', exclude: 'schema' )} </head> <body> Attribuutit
for:Defines the location of the contents to be printed in the HTML document.
Sallitut arvot:- 'head': The content is printed in the HTML document's
<head>element.In such cases, use the tag at the end of the
<head>element. - 'body': The content is printed into the
<body>element of the HTML document.In such cases, use the tag at the beginning of the
<body>element.
- 'head': The content is printed in the HTML document's
exclude:Specifies the components that should be excluded from the contents printed by the tag.
Sallitut arvot:- 'schema': Excludes MyCashflow's Schema.org markup.
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.'
