Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar Module - How to Question

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1738 Views
  • IDOLYZ
    Avatar
    Community Member
    40 Posts

    Re: Event Calendar Module - How to Question Link to this post

    ^ 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!

  • Bstarr
    Avatar
    Community Member
    25 Posts

    Re: Event Calendar Module - How to Question Link to this post

    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

  • Bstarr
    Avatar
    Community Member
    25 Posts

    Re: Event Calendar Module - How to Question Link to this post

    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.

    1738 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.