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 Module - How to Question


Go to End


11 Posts   3480 Views

Avatar
IDOLYZ

Community Member, 40 Posts

29 June 2011 at 3:34pm

^ what he said.

UncleCheese: Can you please help me out with my problem in the post above: http://www.silverstripe.org/all-other-modules/show/17306#post304881

Thanks heaps!

Avatar
Bstarr

Community Member, 25 Posts

30 June 2011 at 9:50am

Thanks, I'm a Silverstripe newbie so I hadn't used the new page types yet. I was able to create a new page type when I put in

<% control UpcomingEvents %>

I get the following error:

Parse error: syntax error, unexpected $end in /home/content/07/7202507/tmp/silverstripe-cache-home-content-07-7202507-html-cassiusblueco/.cache.themes.cassiusblueco.templates.Layout.HomePage.ss on line 323

Avatar
Bstarr

Community Member, 25 Posts

2 July 2011 at 10:07am

I finally figured it out. Posting code here and the link to the documentation in case any other newbies are having a hard time also.

This shows title & date for announcements and title (as a hyperlink to the event) plus the date and time with EST after the time for the timezone.

<% control UpcomingEvents %>
<% if Announcement %>
$Title | $_Dates
<% else %>
<a href="$Event.Link">$Event.Title</a>
$_Dates | $_Times EST
<% end_if %>
<% end_control %>

Documentation: http://doc.silverstripe.org/old/modules:event_calendar

Thanks for the help.

Go to Top