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 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
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.
Cannot figure out how to do it. Say we extend EventCalendar (following instructions)
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
class WorkshopSiteTree extends CalendarSiteTree
to more complicated but no more working.
CalendarSiteTree.php contains no closing
but works. Why?