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 and Translatable - error adding announcements in second language


Go to End


5 Posts   1910 Views

Avatar
Kalileo

Community Member, 127 Posts

5 October 2009 at 8:15pm

Edited: 05/10/2009 8:37pm

Event Calendar works fine with Translatable, except when trying to add announcements to the calendar in the second language. When clicking the "add announcement" button, instead of the form there appears the error message:
"I can't handle sub-URLs of a CMSMain object."

When adding announcements manually to the database table CalendarDateTime they are displayed correctly, on the site and in the CMS. However when trying to edit them in the CMS (in the second language) the same "can't handle sub-URLs" error appears.

Tested with:

  • SilverStripe-v2.3.2
  • modules-event_calendar-r51
  • modules-dataobject_manager-r197

and
  • SilverStripe-v2.3.3
  • modules-event_calendar-r83
  • modules-dataobject_manager-r293

I assume this is easy to fix, and then Event Calendar and Translatable can be used together with no more problems.

Avatar
Kalileo

Community Member, 127 Posts

6 October 2009 at 7:32am

Almost there:
After applying the patch quick patch for LangSelector() in CMSMain.php the error seems to be gone, even as content_admin, but despite having entered it in the calendar of the second language the announcement is saved in the calendar of the first language, and not in the calendar of the second language.

Avatar
Kalileo

Community Member, 127 Posts

6 October 2009 at 1:18pm

I have to take that back, now the language selector works fine, but the event calendar still or again gives the error message:
"I can't handle sub-URLs of a CMSMain object." as described above.

Avatar
Kalileo

Community Member, 127 Posts

8 October 2009 at 4:17pm

Edited: 08/10/2009 4:18pm

UncleCheese, there is a (minor) typo in modules - Revision 83: /trunk/event_calendar/templates/Layout/CalendarEvent.ss
Line 11 is

  • <h4><% _t('FILTERCALENDAR','Fitler calendar') %>:</h4>

but should be
  • <h4><% _t('FILTERCALENDAR','Filter calendar') %>:</h4>

Avatar
Kalileo

Community Member, 127 Posts

8 October 2009 at 5:54pm

upgraded to modules-dataobject_manager-r295 and the pop-ups are pop-ups again, but the I can't handle sub-URLs of a CMSMain object. error is still there when trying to add announcements in the second language.