Page 1 of 1

[SOLVED] CGCalendar - Events with same title not displaying

Posted: Thu Sep 30, 2010 4:12 pm
by richardjkeys
Hi,

I'm using CGCalendar to manage events on a new site.

I've created an upcominglist template:

Code: Select all

<div id="events">
<h2>Upcoming Events</h2>
{foreach from=$events key=key item=event}
	<div class="eventPanel">
		<h3><a href="{$event.url}">{$event.event_title}</a></h3>
<p class="eventVenue">Venue: {$event.venue}</p>		
<p class="eventCategory">Event Category: {$event.category}</p>
		<a class="eventDate" href="{$event.url}">
			<span class="month">{$event.event_date_start|date_format:"%b"}</span> <span class="day">{$event.event_date_start|date_format:"%d"}</span>
		</a>
		<p class="eventDescription">{$event.event_summary}</p>
<a href="{$event.url}" class="btnReadMore">View Event</a>
	</div>
{/foreach}
</div>
This seemed to be working fine, until I entered a new event with the same title. It now only shows the first event with this title - others aren't displayed in the list.

Is this a known issue? I couldn't find any topics with a similar problem.

Any help would be greatly appreciated.

Regards,

Rich

Re: CGCalendar - Events with same title not displaying

Posted: Thu Sep 30, 2010 4:43 pm
by vzw klemtoon
I think you should place

unique_only="1"

in your tag

greetz

Re: CGCalendar - Events with same title not displaying

Posted: Thu Sep 30, 2010 4:49 pm
by richardjkeys
Excellent, that seems to have done the trick!

Thanks,
Rich

Re: [SOLVED] CGCalendar - Events with same title not displaying

Posted: Mon Oct 25, 2010 12:10 pm
by nicmare
awesome! had the same problem and used the forum search. thank you!