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

Preview: Event Calendar Module


Go to End


293 Posts   69210 Views

Avatar
Bernhard

Community Member, 3 Posts

3 August 2009 at 10:25pm

events_calendar ---> please exchange misspelled "Fitler" by correct "Filter"

\event_calendar\lang\en_US.php - line 00111:
'Fitler calendar';

\event_calendar\templates\Layout\CalendarEvent?.ss - line 00011:
<h4><% _t('FILTERCALENDAR','Fitler calendar') %>:</h4>

Avatar
silk78

Community Member, 8 Posts

26 August 2009 at 6:11am

Hi UncleCheese!

After I updated event calendar to the newest version I have a problem:
I cannot enter dates for announcements and events.
All I get are those info messages in the admin area:

Announcements:
"You may add Announcements once you have saved for the first time."

CalendarEvents:
"a Dates
You may add a Dates once you have saved for the first time."

Of course I saved, but nothing changed.
I cannot find any other error message.
I removed all Calendar tables and rebuilt everything. I also have gone back several versions of event calendar.
Regardless what I do, the problem remains.

Until some days ago, everything worked just fine.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 August 2009 at 6:13am

Make sure you're up to date on dataobject_manager and event_calendar. That bug was fixed a few revs back.

Avatar
silk78

Community Member, 8 Posts

26 August 2009 at 6:22am

Thanks! I missed that connection.
Now it seems to work, but with rev 239 an info box pops up when entering a date, just saying "hi".

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 August 2009 at 6:30am

Oops! Now THAT's a bug. An embarrassing one, at that. :)

Run an update and you should be okay.

Avatar
silk78

Community Member, 8 Posts

26 August 2009 at 6:35am

Now everything is fine with the calendar.
I thought it was a feature, such a friendly program. Greeting the user. It reminded me of Douglas Adams' doors. :-)

Avatar
Scivitri

Community Member, 2 Posts

4 September 2009 at 9:05am

First, let me say this is an amazing module! I've spent the last couple of days setting up a clean SS environment, seeing what's improved with the intent of rebuilding a site. So far, I think I've installed everything UncleCheese has written.

Anywho, I did have some stress with Event Calendar. This is the current version (r76) with no customization done yet, so out-of-the-box. It lists every event twice. I later installed the subsite module, and it lists events and announcements from a calendar on the subsite, but only once.

It looks to me like a problem in Calendar::Event(). The where clause for pulling announcements is mal-formed. The following change worked for me:

(lines 345-352, but I think this added a couple of lines. It's all the second parameter to DataObject::get())

"CalendarDateTime.CalendarID={$this->ID}
AND (
(StartDate <= '$start' AND EndDate >= '$end') OR
(StartDate BETWEEN '$start' AND '$end') OR
(EndDate BETWEEN '$start' AND '$end')
) AND
CalendarDateTime.EventID=0
$where",

Enjoy, and thanks for the fine module!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

4 September 2009 at 9:10am

Thanks for the feedback! What did you change, exactly?