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.

All other Modules

Discuss all other Modules here.

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

Extending the Event Calendar


Reply

6 Posts   1094 Views

Avatar
Erikh112

18 December 2009 at 8:09am Community Member, 9 Posts

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

18 December 2009 at 8:19am 4085 Posts

What problem are you having?

Avatar
Erikh112

18 December 2009 at 8:24am (Last edited: 18 December 2009 8:42am), Community Member, 9 Posts

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

18 December 2009 at 8:47am 4085 Posts

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

18 December 2009 at 10:40pm Community Member, 9 Posts

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

19 December 2009 at 2:07am Community Member, 9 Posts

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.