Skip to content

Instantly share code, notes, and snippets.

@GDmac
Created March 27, 2012 13:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save GDmac/2215989 to your computer and use it in GitHub Desktop.
/* Event Helper, set an event to april first
* it won't show in the channel:entries
* but the archive wil show an entry for april
*/
{exp:channel:entries channel="events"
dynamic='no'
year='2012' month='04'
show_expired='yes' show_future_entries="yes"
}
<p>{title} - {entry_date}</p>
{/exp:channel:entries}
{exp:channel:month_links channel="events" show_future_entries="yes" show_expired="yes"}
{year_heading}<strong>{year}</strong><br>{/year_heading}
<a href="{path='events/detail'}">{month_short}</a>
{/exp:channel:month_links}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment