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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Extending the Event Calendar


Go to End


6 Posts   1590 Views

Avatar
Erikh112

Community Member, 9 Posts

18 December 2009 at 8:09am

Hello,

i have some problems by extending the event calender regarding the text on the following pages:
http://doc.silverstripe.org/doku.php?id=recipes:extending_the_event_calendar&s=recipes%20calendar

maybe one of you could send me the creating php files ?

workshopholder
workshopdatetime
workshop

Thank you.

Greetings
Erik

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 December 2009 at 8:19am

What problem are you having?

Avatar
Erikh112

Community Member, 9 Posts

18 December 2009 at 8:24am

Edited: 18/12/2009 8:42am

Thanks for the fast answer.
Everything is working fine until the part:

Lastly, we update our template to contain the Location field.

/mysite/templates/Layout/WorkshopHolder.ss ( i don't have this file!)

<dl>
<dt>Category: </dt>
<dd>$Event.Category</dd>
<dt>Sponsor: </dt>
<dd>$Event.Sponsor</dd>
<dt>Location: </dt>
<dd>$Location</dd>
</dl>

I don't know how to put these lines in the correct file. You you please help me ??

thanks

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 December 2009 at 8:47am

You don't have the file, but hopefully you've created it? that's the idea. :)

What control block are you in at that point? There may be an error in the example code. Make sure at that point you are still in the <% control Events %> block. If not, you may be able to access those properties without the $Event accessor, e.g. $Category $Sponsor.

Avatar
Erikh112

Community Member, 9 Posts

18 December 2009 at 10:40pm

ok, thanks for your comment.
I think i have almost done it. But the next question is:
How do i add some instructors as a checkbox field?
thanks

Avatar
Erikh112

Community Member, 9 Posts

19 December 2009 at 2:07am

hello again,

i have problems when changing the category names.

I would like to have "Uebung", "Besprechung" and Sonstiges.

Could you please have a look on the php files. i dont find the mistake. Thanks.