Hi there! I’m sure i’m missing something obvious here, but i’m having a problem with the event details displaying on Repeet events where the Start Date is in the future.
Events I create before the current date work fine, and all events show in the calendar, but when I click to the event_details template for an event in the future it doesn’t work, and just shows an empty template.
Any ideas? Thanks!
Code for Cal: (pretty much exactly as per the examples)
{exp:repeet:get_ids weblog="regular_events" parse="inward" calendar="yes"}
{exp:repeet:calendar switch="calendarToday|calendarCell" weblog="regular_events" entry_id="{repeet:entry_ids}" interval_field="repeat_interval" include_field="include_dates" exclude_field="exclude_dates" show_future_entries="yes" show_expired="yes" start_day="monday"}
<table class="calendarBG" cellpadding="6" border="0" cellspacing="1" summary="My Calendar" width="90%">
<tr class="calendarHeader">
<th><div class="calendarMonthLinks"><a href="http://{previous_path=members/member_calendar}">< Prev Month</a></div></th>
<th colspan="5" class="calendarMonth">{date format="%F %Y"}</th>
<th><div class="calendarMonthLinks"><a href="http://{next_path=members/member_calendar}class=calendarMonthLinks">Next Month ></a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_long}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}
<td class='{switch}' align='center'>
{day_number}
{entries}
<div><a href="http://{title_permalink=members/member_event_detail}">{title}</a></div>
{/entries}
</td>
{/if}
{if not_entries}
<td class='{switch}' align='center'>{day_number}</td>
{/if}
{if blank}
<td class='calendarBlank'> </td>
{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}
Code for the Event Details:
{exp:weblog:entries weblog="regular_events" limit="1" status="Major Event|Open" show_future_entries="yes"}
<h3 class="articletitle">{title}</h3>
Event Date: {expiration_date format="%d/%m/%y"}
<div id="contentheader">
<div id="mainimage">
{eventimage}
</div>
<div id="pageintro">
<span class="newsintro">{event_excerpt}</span>
{event_detail}
</div>
<div id="midcontent" class="newsAttach">
{if eventfile == ""}
{if:else}
<h4>There is an attachment for this article:</h4>
<a href="http://{eventfile}" class="docbutton">Download file</a>
{/if}
</div>
<div class="clear"></div>
<ul id="articlenav">
<li class="articleback"><a href="http://{path=members/member_calendar}">< Back to Member Events</a></li>
<li class="articlenext">{exp:weblog:prev_entry weblog="regular_events" category="7"}<a href="http://{path=">< Prev Article</a>{/exp:weblog:prev_entry} {exp:weblog:next_entry weblog="regular_events" category="7"}<a href="http://{path=">Next Article ></a>{/exp:weblog:next_entry}</li>
</ul>
{/exp:weblog:entries}
Thanks for the tip, that got the event details included. Turns out there was also a problem with my header embed code for the page - I hadn’t included all the details, so it wasn’t embedding the header:
{exp:weblog:entries weblog="regular_events" limit="1" status="Major Event|Open" show_future_entries="yes" show_expired="yes"}
{embed="includes/document_head" my_page_title="Events" article_title="{title}"}
{/exp:weblog:entries}
Seems to have done the trick, thanks! One more off the list…
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.