10380 Posts in 2195 Topics by 1711 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 846 Views |
-
Event Calendar Modul - Show Events of the whole year

25 January 2011 at 1:36am
Hi everybody,
I have installed the event calendar modul (http://silverstripe.org/event-calendar/)
I would like to show all events of the year on the main event page. (even if its march.. there still should be the january and february).
Can anybody help me to get that work?
thanks, martin.
-
Re: Event Calendar Modul - Show Events of the whole year

25 January 2011 at 3:30am
/your-calendar/view/2011
-
Re: Event Calendar Modul - Show Events of the whole year

25 January 2011 at 10:06pm
hey hello,
thanks for the answer.
Of course that works.
But I want it to work when I am at "/your-calendar/"
so at the main page of the calendar.
is that possible too? -
Re: Event Calendar Modul - Show Events of the whole year

25 January 2011 at 10:47pm
could it be this one? in code/Calendar.php
static $defaultFutureMonths = 1;
-
Re: Event Calendar Modul - Show Events of the whole year

25 January 2011 at 11:14pm
well.. I cant get the whole year with changing the defaultFutureMonths.
it means just the future months. -
Re: Event Calendar Modul - Show Events of the whole year

26 January 2011 at 3:56am
You could just set up a redirect for /your-calendar/ to /your-calendar/view/2011. You just have to remember to change it ever year.
Another solution would be to decorate Calendar_Controller and add an index() action.
public function index() {
return Director::redirect(Controller::join_links($this->Link(),'view',date('Y'));
}--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com -
Re: Event Calendar Modul - Show Events of the whole year

27 January 2011 at 4:14am
thats a quite good idea, thanks a lot
| 846 Views | ||
|
Page:
1
|
Go to Top |


