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

Event Calendar in 2.4 alpha


Go to End


21 Posts   6591 Views

Avatar
Tigerlilly

Community Member, 19 Posts

16 March 2010 at 11:20am

I am trying to do the same thing but still getting the 404 page. I have added the above methods to Calendar and CalendarEvent pages is there something else I am missing? Did you change any other pages?

Thanks
Denise

Avatar
Leo.zhuang

Community Member, 1 Post

12 April 2010 at 7:27pm

To Tigerlilly:

I reckon you probably need to remove '-' from the following code in handleAction method:
$patterns[] = '/^(19|20)\d\d$/';
$patterns[] = '/^(19|20)\d\d-(0[1-9]|1[012])$/';
$patterns[] = '/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/';

After removing '-', the code looks like this.

$patterns[] = '/^(19|20)\d\d$/';
$patterns[] = '/^(19|20)\d\d(0[1-9]|1[012])$/';
$patterns[] = '/^(19|20)\d\d(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$/';

The files of Canlendar.php and CalendarEvent.php have been attached.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

13 April 2010 at 2:49am

FYI, the 2.4 version of EventCalendar is now on the trunk. I've branched off 2.3 to /branches/2.3/

Avatar
silverseba

Community Member, 26 Posts

12 May 2010 at 3:03am

Sorry for being stupid, but where can I find the 2.4 Version of the EventCalendar?
Didn´t find it in the Module section (http://www.silverstripe.org/event-calendar/) nor on the SVN Server (http://bluehousegroup.svn.beanstalkapp.com/modules/trunk/event_calendar).

Avatar
UncleCheese

Forum Moderator, 4102 Posts

12 May 2010 at 3:57am

That SVN is correct. EventCalendar 2.4 is on the trunk.

Go to Top