Return to Snippet

Revision: 65014
at October 14, 2013 02:40 by Bopp


Initial Code
{% setcontent records = "pages/latest/10" limit  %}
 
{# use 'for' to iterate over the records. #}
{% for record in records %}
  
    {# we only want '5 to 9' #}
    {% if loop.index >= 5 and loop.index <= 9 %}
        
        <article>
      
          <h2><a href="{{ record.link }}">{{ record.title }}</a></h2>
          {{ record.introduction }}
        
        </article>
    
    {% endif %}
 
 
{% enfdor %}

Initial URL

                                

Initial Description
How to display pages '5 through 9'..

Initial Title
How to display pages '5 through 9'..

Initial Tags

                                

Initial Language
HTML