Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar not showing upcoming events


Go to End


2 Posts   1534 Views

Avatar
Shawn

Community Member, 6 Posts

5 April 2011 at 5:31am

Let me first start by saying I'm a complete n3wb when it comes to SS - I've recently taken over an existing project and I'm trouble shooting the problem of not having my upcoming events display.

Using the Event Calendar module. Data object manager is installed, SS version is 2.3.7.

I'm creating a new calendar event, and pinning it to my "Local Events" section as its parent, "Local Events" being a Calendar page type.

I can view an event by manually navigating to its url, but these events aren't populating on my Local Events page. Here is my code in my Calendar.ss - which is the template file that Local Events pulls from:

	  <h3>UPCOMING EVENTS</h3>
	<% if Events %>
	 <ul id="eventslist">
	<% control Events %>
	
	<li><div class="date">
	    <h4>$StartDate.format(M)</h4>
	    <h5>$StartDate.format(d)</h5></div>
	    <h6>$EventTitle</h6><% control Event %>$Content.LimitWordCount(60)<% end_control %><br />
	
	    <a href="$Link">More Information</a> | <a href="#">Visit Website</a></li>
	<% end_control %>
		
	<% else %>
	<% _t('NOEVENTS','There are no events') %>.
	<% end_if %>

Any help would be greatly appreciated, as I have minimal experience with SS so far.

Avatar
Shawn

Community Member, 6 Posts

13 April 2011 at 5:16am

bump