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

Preview: Event Calendar Module


Reply

293 Posts   41964 Views

Avatar
Xeal

9 April 2009 at 8:10am Community Member, 37 Posts

Now I have something else acting weird... haha you're going to love me after all this :P
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 =)

Avatar
UncleCheese

9 April 2009 at 8:16am 4085 Posts

Should have been fixed in the latest revision. Can you make sure you're up to date?

Avatar
Victor

9 April 2009 at 8:21am Community Member, 128 Posts

Tutorial: Extending Event_Calendar (wiki)

Missing in WorkshopHolder.ss

<% control Events %>

<% end_control %>

enveloping Image, Sponsor

Avatar
UncleCheese

9 April 2009 at 8:25am 4085 Posts

I'm not sure what you're talking about?

Avatar
Xeal

9 April 2009 at 8:26am Community Member, 37 Posts

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
ex. $Event->Image
$Event->Sponsor
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

Avatar
Xeal

9 April 2009 at 8:31am Community Member, 37 Posts

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.

Attached Files
Avatar
UncleCheese

9 April 2009 at 8:31am 4085 Posts

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.

Avatar
Victor

9 April 2009 at 8:36am (Last edited: 9 April 2009 8:38am), Community Member, 128 Posts


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