10446 Posts in 2223 Topics by 1719 members
| Go to End | ||
| Author | Topic: | 1333 Views |
-
Re: Event Calendar Module - How to Question

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!
-
Re: Event Calendar Module - How to Question

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
-
Re: Event Calendar Module - How to Question

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.
| 1333 Views | ||
| Go to Top |


