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

It is possible to use global visibility tags in any page template and within 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

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.

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.'