10979 Posts in 2722 Topics by 1815 members
|Go to End||Next >|
9 April 2009 at 8:10am
Now I have something else acting weird... haha you're going to love me after all this
Alright, now when I try to add Announcements, it acts as if it the announcement is saved, but nothing goes into the database nor the form itself (the cms). Not exactly sure why it's doing this. I tried looking through the code and still am, a little lost though, but I thought I'd post just in case someone else had this problem and knows how to fix it.
I Appreciate the hard work you put in to this module. keep up the good work =)
9 April 2009 at 8:16am
Should have been fixed in the latest revision. Can you make sure you're up to date?
9 April 2009 at 8:21am
Tutorial: Extending Event_Calendar (wiki)
Missing in WorkshopHolder.ss
<% control Events %>
<% end_control %>
enveloping Image, Sponsor
9 April 2009 at 8:25am
I'm not sure what you're talking about?
9 April 2009 at 8:26am
in the WorkshopHolder The problem is the wiki doesn't explain it rather well.
there's a tag <% control Events %>
if you place it after that you can access the Image and Sponsor like this
look at line 52 I added it after this
<% control Event %>$Content.LimitWordCount(60)<% end_control %> <a href="$Link"><% _t('EVENTCALENDAR.MORE','more...') %></a>
Someone correct me if I'm way off but I'm pretty sure that's right, well it works for me =)
Hope that clears things a little for others who might be following the tutorial
9 April 2009 at 8:31am
To make a long story short. I extended the Calendar to make it work for my needs, but now I can't add any announcements to my calendar. Events work fine though, and on the Basic Calendar announcements work fine. I don't think I changed any code that could mess with the announcements, but I'll double check to make sure.
9 April 2009 at 8:31am
That is a confusing part of the Events control. It actually returns DateTime objects, so to access your Event properties, you need to do $Event.Property, e.g. $Event.Sponsor.
Victor, I hope you meant to write <% control Event %> and not <% control Events %>.. They return very different things in that context.
9 April 2009 at 8:36am Last edited: 9 April 2009 8:38am
Victor, I hope you meant to write and not <% control Events %>.. They return very different things in that context.
I suspect that <% control Event %> is correct and <% control Events %> is not but the former does not work and the latter does
But it envelopes $Event.Sponsor, not $Events.Sponsor. This is really confusing
|Go to Top||Next >|