ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display name of each month once above first entry within that month

March 30, 2013 10:47pm

Subscribe [1]
  • #1 / Mar 30, 2013 10:47pm

    jsuissa

    147 posts

    Looking through the documentation I can’t seem to find anything that would enable the display each month only once above the first entry of that month.

    In a series of news channel entries we want to display the month within <h1> tag only once per month and not with every subsequent entry. So “January” and then it’s three entries and “February” and then it’s four entries, etc.

    Is this possible without using PHP inside a template?

    Thanks in advance.

    Justin

  • #2 / Mar 30, 2013 10:52pm

    jsuissa

    147 posts

    Posted too soon, this works just fine:

    {date_heading display="monthly" }
        <a href="http://{path=">{entry_date format="%F %Y"}</a>
        {/date_heading}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases