Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created November 17, 2012 06:27
Show Gist options
  • Save iainurquhart/4093798 to your computer and use it in GitHub Desktop.
Save iainurquhart/4093798 to your computer and use it in GitHub Desktop.
blx.entries
{% for entry in blx.entries.findEntries({ section: 'Blog', limit: '100', order: "postdate"}) %}
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}
@iainurquhart
Copy link
Author

Correct syntax

{% for entry in blx.entries.section('blog').find %}
 <li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}

or similarly

{% for entry in blx.entries.section('Blog').limit(100).order('postdate').find() %}
 <li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment