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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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
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.
FYI, the 2.4 version of EventCalendar is now on the trunk. I've branched off 2.3 to /branches/2.3/
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).
That SVN is correct. EventCalendar 2.4 is on the trunk.