Created
November 30, 2012 02:03
-
-
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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