Skip to content

Instantly share code, notes, and snippets.

@makbeta
Created November 30, 2012 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makbeta/4173313 to your computer and use it in GitHub Desktop.
Save makbeta/4173313 to your computer and use it in GitHub Desktop.
Luminate CMS: How to render a list of CMS items with a date field grouped by month?
<t:if test="length > 0">
<t:set id="lastdate" value="''" />
<t:list>
<t:if test="month(date) != lastdate"><h3><t:value id="date" format="MMMMMMMMM" /></h3></t:if>
<a href="${url}">${title}</a>
...
<t:set id="lastdate" value="month(date)" />
</t:list>
</t:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment