RSS Feeds - CrystalCommerce Liquid Documentation for Designers

RSS Feeds

The rss_feed block allows you to display the contents of a remote RSS feed on the page. First, the RSS Feed needs to be created in the admin, under Design -> Rss Feeds. The name of the feed will be used in your liquid to identify which rss feed you want to display.

The rss_feed block exposes the feed, which has the following properties:

For example:

{% rss_feed 'blog' do feed %}
  <h1><a href="{{ feed.link }}">{{ feed.title }}</a></h1>
  <p>{{ feed.description }}</p>
  {% for entry in feed.entries limit:5 %}
    <h3><a href="{{ entry.link }}">{{ entry.title }}</a></h3>
    <p>{{ entry.description }}</p>
    {{ entry.content }}
  {% endfor %}
{% endrss_feed %}