According to the Repeet documentation, you can put “anything you would normally put between exp:weblog:entries tags” inside repeet:display. Can I use date_heading? It’s not working properly in my template:
<table cellspacing="0" class="list">
{exp:repeet:parse date_header_interval="month"}
{repeet:no_results}
<tr>
<td class="alert">Sorry, no events are listed for this date.</td>
</tr>
{/repeet:no_results}
{repeet:date_header}<h1>%F %Y</h1>{/repeet:date_header}
{exp:repeet:get_ids weblog="events" parse="inward"}
{exp:weblog:entries weblog="events" entry_id="{repeet:entry_ids}" show_expired="yes" show_future_entries="yes" dynamic="off"}
{repeet:item}
{repeet:entry_id}{entry_id}{/repeet:entry_id}
{repeet:entry_date}{entry_date format="%Y-%m-%d %H:%i"}{/repeet:entry_date}
{repeet:expiration_date}{expiration_date format="%Y-%m-%d %H:%i"}{/repeet:expiration_date}
{repeet:interval}{event_repeat}{/repeet:interval}
{repeet:include_dates}{event_dates}{/repeet:include_dates}
{repeet:exclude_dates}{exclude_dates}{/repeet:exclude_dates}
{repeet:display}
{date_heading display="daily"}
<tr>
<td colspan="2">{entry_date format="%l, %F %j, %Y"}</td>
</tr>
{/date_heading}
<tr>
<th scope="row">{repeet:start_time format="%F %j %g:%i %A"}</th>
<td>
<a href="/calendar/event/{entry_id}/" title="Event details">{title}</a>
{categories show_group="36" backspace="1"}{category_name}, {/categories}
{categories show_group="34" backspace="1"}{category_name}, {/categories}
</td>
</tr>
{/repeet:display}
{/repeet:item}
{/exp:weblog:entries}
{/exp:repeet:get_ids}
{/exp:repeet:parse}
</table>
The date heading repeats for each day with entries, but it doesn’t appear in the correct place.
I’m trying to match the attached comp.
Is it possible to use more than one repeet:date_header?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.