Prints the contents produced and used by extensions. We recommend using the {Extensions} tag instead of extensions' own tags whenever possible.
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 service) scripts.
If your online store uses extensions, make sure you use the {Extensions}
tag in your theme.
The {Extensions}
tag should be inserted as needed into different parts of an 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
Adding the {Extensions}
tag to the store theme enables you to use multiple MyCashflow extensions in your online store. 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>
In the <body>
element, the tag is added immediately after the opening <body>
tag with the attribute for: 'body'
.
</head>
<body>
{Extensions(
for: 'body'
)}
Hiding product information from Google Search
You can hide your online store's product information from Google Search by adding the exclude: 'schema'
attribute to 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 contents is be printed in the
<head>
element of the HTML document.In such cases, use the tag at the end of the
<head>
element. - 'body': The contents is be printed in the
<body>
element of the HTML document.In such cases, use the tag at the beginning of the
<body>
element.
- 'head': The contents is be printed in the
exclude:
Specifies the components that should be excluded from the contents printed by the tag.
Sallitut arvot:- 'schema': Excludes MyCashflow's Schema.org markup.
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:The HTML and Interface markup
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.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:The HTML and Interface markup
E.g.
or:
'Sisältöä ei löytynyt.'