Templating Example

This example depends on a section front option with an identifier of “rss_feed” that is pointing to a valid RSS url:

{% get_section_front for section as sfront %}
<div class="module" id="external_feed">
   <h2><a href="#">RSS Feed</a></h2>
       {% parse_feed sfront.rss_feed.url as feed %}
       {% for item in feed.entries|slice:"10" %}
         <li><a href="{{ item.link }}">{{ item.title }}</a></li>
       {% endfor %}
Click to copy


Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.