Monday 22 December 2008 2:27:43 pm
I am working on a calendar where we fetch the calendar events for the month. Some of these events repeat based on rules set in the Calendar Event object class. I have logic to determine the repeating rules in the template, but I would love to add these new objects to my original fetch if at all possible. I get a fetch result $events. For the repeating items, I want to update their event date based on the repeat rules and append this repeating item to the $events result. Is it possible to update an attribute (in this case an eZ Date attribute)? Or would I be better off to create a new array with the data I need based on the fetch for display purposes? When I try to update the attributes in the template like so:
{set $event.data_map.start_dt.content.timestamp= $dts['dts']
where $dts['dts'] returns a valid timestamp, I get this error so I am clearly doing this incorectly: Empty variable name at [.data_map.start_dt.content.timestamp = $dts['dts'] Any ideas on how I should proceed?
Web Developer
Coupon Cabin
Chicago, IL
|