Jump to:

10978 Posts in 2721 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Calendar and "CalendarShoutBox"

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 735 Views
  • Victor
    Avatar
    Community Member
    128 Posts

    Calendar and "CalendarShoutBox" Link to this post

    We have a Calendar and CalendarEvent pages (from event_calendar) but we want also a CalendarShoutBox on some other kind of page which displays exactly the same events as Calendar but without CalendarSideBar and DatePicker (and ideally displays only events in the next 10 days).

    Thank you in advance

    Victor

  • UncleCheese
    Avatar
    4085 Posts

    Re: Calendar and "CalendarShoutBox" Link to this post

    The UpcomingEvents function is decorated into your SiteTree, so you should just be able to add <% control UpcomingEvents %>$_Dates, etc..<% end_control %> to any template.

  • Victor
    Avatar
    Community Member
    128 Posts

    Re: Calendar and "CalendarShoutBox" Link to this post

    And if I have not a Calendar but WorkshopHolder as
    http://doc.silverstripe.org/doku.php?id=recipes:extending_the_event_calendar

    I will try to figure out what should I use to replace UpcomingEvents

  • Victor
    Avatar
    Community Member
    128 Posts

    Re: Calendar and "CalendarShoutBox" Link to this post

    Cannot figure out how to do it. Say we extend EventCalendar (following instructions)
    http://doc.silverstripe.org/doku.php?id=recipes:extending_the_event_calendar
    and want put something on a separate page.

    <% control UpcomingEvents %>$_Dates, etc..<% end_control %>


    which works for plain EventCalendar does not work anymore. I made few attempts to create
    WorkshopSiteTree.php, from trivial

    <?php

    class WorkshopSiteTree extends CalendarSiteTree
    {
    }


    to more complicated but no more working.

    Any suggestions?

    Another question:

    CalendarSiteTree.php contains no closing

    ?>

    but works. Why?

    Victor

    735 Views
Page: 1
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.