Forums / Setup & design / Updating an attribute in an eZ Content Object

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Updating an attribute in an eZ Content Object

Author Message

Jim Thaxton

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