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

How to show EventCalendar Widget in all pages


Go to End


1969 Views

Avatar
sureshk

Community Member, 10 Posts

6 January 2010 at 2:09am

How can I show Calendar Widget in all pages at the right side . When user clicks on a particular date, it should go to Events page and displays the relevant Events and content etc.
I installed EventsCalendar module and created one "Events Calnedar page" and created some events under this main Calendar page in Admin.
I tried this function in Page.php and called in RightMenu.ss which included in Page.ss
function MyCalWidget(){
return new CalendarWidget($this);

}
It is showing the widget, but when I click on a particular date, it is taking to same page, It is not taking to Events Page.
Can anybody please suggest me how to do this?