I need help with the Repeet plugin. I’m trying to get repeet to list the next 10 upcoming events. I do not want to use the url values, as this will likely end up on the home page. Right now the page only displays the events for the current day.
I’m guessing I need to add the parameter end, but I don’t know what an acceptable format is, and the link on the repeet documentation is broken. Then really I don’t want and end date, but instead to limit it with another parameter, but I’m not sure if max_list will work.
Any help would be appreciated.
Current page http://www.vfbt.org/eetest/index.php/testevents/
Template Code
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}
{embed="embeds/html_header" page_title="Home"}
{embed="embeds/header" page_location="home"}
<div id="content">
<div id="blog">
{exp:repeet:parse date_header_interval="day"}
{repeet:date_header}%M %d, %Y{/repeet:date_header}
{repeet:no_results}Oops, looks like there aren't any events in the time range you specified.{/repeet:date_header}
{exp:repeet:get_ids weblog="testevents" parse="inward"}
{exp:weblog:entries weblog="testevents" entry_id="{repeet:entry_ids}" dynamic="off" show_expired="yes" show_future_entries="yes"}
{repeet:item}
{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}{repeet_interval}{/repeet:interval}
{repeet:include_dates}{repeet_include}{/repeet:include_dates}
{repeet:exclude_dates}{repeet_exclude}{/repeet:exclude_dates}
{repeet:display}
<h2><a href="http://{url_title_path=" title="{title}">{title}</a></h2>
{summary}
<a href="http://{url_title_path=" title="Get more information about {title}">Details</a>...
{/repeet:display}
{/repeet:item}
{/exp:weblog:entries}
{/exp:repeet:get_ids}
{/exp:repeet:parse}
{exp:repeet:get_ids weblog="testevents" parse="inward" calendar="yes"}
{exp:repeet:calendar weblog="testevents" interval_field="repeet_interval" include_field="repeet_include" exclude_field="repeet_exclude" switch="calendarToday|calendarCell" entry_id="{repeet:entry_ids}" show_future_entries="yes" show_expired="yes"}
<table class="calendarBG" summary="Mini Events Calendar">
<tr class="calendarHeader">
<th colspan="7"><a href="http://yoursite.com/events/{date" title="View all events in {date format=">{date format="%F %Y"}</a></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr class="calendarRow">{/row_start}
{if entries}
<td class='{switch}' align='center'><a href="http://{day_path=home/testevents}">{day_number}</a></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}
<tr class="calendarMonthLinks">
<td colspan="3">
<div class="calendarPrevMonth"><a href="http://www.vfbt.org/eetest/index.php/testevents/{previous_date"><< {previous_date format="%M %Y"}</a></div>
</td>
<td></td>
<td colspan="3">
<div class="calendarNextMonth"><a href="http://www.vfbt.org/eetest/index.php/testevents/{next_date">{next_date format="%M %Y"} >></a></div>
</td>
</tr>
</table>
{/exp:repeet:calendar}
{/exp:repeet:get_ids}
</div><!--"blog"-->
{embed="embeds/sidebar"}
</div><!--"content"-->
{embed="embeds/footer"}
{embed="embeds/html_footer"}
try this:
{exp:weblog:entries weblog="events" show_expired="no" display_by="week" show_future_entries="yes" dynamic="off" limit="5"}
<li><a href="http://{url_title_path=events/details}">{title}</a></li>
{/exp:weblog:entries}
I use repeet for my events cal but didn’t need to for this part.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.