I’m working on a site for a golf club.
I have an events template which lists all upcoming events. Seems to be working fine.
Still lots of styling to do but content seems to be OK.
Main code for that template is:
<!-- open left side content div -->
<div id="content_left_col">
{exp:weblog:entries weblog="events" show_future_entries="yes" show_expired="no" disable="member_data|trackbacks" sort="asc" paginate="both" limit="30" orderby="date" start_on="{current_time format='%Y-%m-%d %g:%i %A'}"}
{if no_results}
<h1 class="error">No results.</h1>
There are currently no events of this type scheduled.
{/if}
<div class="event">
<div class="event_date">
{entry_date format="%D %j %M"}
</div>
<div class="event_name">
<a href="http://{url_title_path=events/details}">{title}</a>
</div>
<div class="event_name">
{event_summary}
</div>
</div>
{paginate}
<div class="paginate hidepagination{total_pages}">
Page: {current_page} of {total_pages} {pagination_links}
</div>
{/paginate}
{/exp:weblog:entries}
<!-- close left side content div -->
</div>The event name links to an events/details template where eventually I will have much more information about the event. It seems to passing the correct url on OK but the events/details template isn’t getting any content:
Code for the main part of this template is:
<!-- open left side content div -->
<div id="content_left_col">
{exp:weblog:entries weblog="events" disable="member_data|trackbacks" limit="1"}
{entry_date)
{title}
{event_summary}
{/exp:weblog:entries}
<!-- close left side content div -->
</div>I have kind of been using Michael Boyink’s excellent “Building an Expression Engine Site” as reference but obviously messed it up somewhere along the way..