10390 Posts in 2202 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 892 Views |
-
Extending the Event Calendar

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%20calendarmaybe one of you could send me the creating php files ?
workshopholder
workshopdatetime
workshopThank you.
Greetings
Erik -
Re: Extending the Event Calendar

18 December 2009 at 8:24am Last edited: 18 December 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
-
Re: Extending the Event Calendar

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.
-
Re: Extending the Event Calendar

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 -
Re: Extending the Event Calendar

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.
| 892 Views | ||
|
Page:
1
|
Go to Top |

