We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can I use date_heading and date_footer with Repeet?

Development and Programming

kirkaracha's avatar
kirkaracha
273 posts
16 years ago
kirkaracha's avatar kirkaracha

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?

       
Nico Smit's avatar
Nico Smit
48 posts
16 years ago
Nico Smit's avatar Nico Smit

Try date_footer instead of date_heading.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.