grouped
Can be used for grouping list objects by user defined parameter.
{% grouped article_groups by page in site.latest_articles %} {% for article_group in article_groups %} {{ article_group.page.title }} {% for article in article_group.articles %} {{ article.title }}<br/> {% endfor %} {% endfor %} {% endgrouped %}
{% grouped element_groups by region in elements %} {% for group in element_groups %} {% for element in group %} {{ element.title }} {% endfor %} {% endfor %} {% endgrouped %}
- Basics
- Variables
- Filters
- Components
- Localization
- Keyboard shortcuts
- Objects
- Article
- Asset
- Blog
- Comment
- Element
- Language
- Mediaset
- Menu item
- Page
- Person
- Site
- Tag
- Data
- Tags
- addbutton
- assign
- blogcontext
- case
- capture
- commentform
- content
- contentblock
- cycle
- editable
- elementscontext
- for
- grouped
- if
- ifchanged
- image
- include
- load
- login
- loginblock
- menuadd
- menubtn
- menulink
- reorder
- rss_link
- stylesheet_link
- unless
- xcontent
- Examples
- Creating a navigation menu
- Creating language selection
- Blog page example
- Blog article example
- Complete page example
- Breadcrumbs
- Standard theme definition
- Elements listing
- Element page
- Components