Prints a link tag that tells the browser that the content is also available in the RSS format.
Kuvaus
The RSS feed contents depends on the page on which the tag is used: the feed contains the brand's newest products on the brand page and the category's newest products on the product category page.
If the tag is used on a page with no products, the feed will contain the store's newest products.
Always use this tag in the head
element.
Syntaksi
{Feed}
Näkyvyys
Toimii näkyvyydessä: globaali
Tags with global scope can be used on any template and in any tag.
Printing the RSS data in the head element
<head>
{Feed}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{Title}</title>
...
In the MyCashflow default theme, the {Feed}
tag has been used at the beginning of the <head>
element in the helpers/header.html file. In this way, the RSS feed data is printed on every page of the online store.
E.g. the {Feed}
tag returns the following markup on the product category page:
<link rel="alternate" title="Demokauppa - Tietokoneet" href="http://demo.mycashflow.fi/feed/category/22" type="application/rss+xml" />
Attribuutit
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.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.'