Forums / Developer / How can I set the value of an attribute?

"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".

How can I set the value of an attribute?

Author Message

Adolfo Barragán

Tuesday 05 April 2005 12:50:14 pm

I need the subject of forum_reply has the value "RE: {$parent.name}".

I fetch the parent by

{let parent=fetch(content, node, 
     hash(node_id, $object.current.main_parent_node_id))}

Now, How can I set the value of attribute $object.data_map.subject to $parent.name?

So, when I call edit template, the input "subject" is filled with this value.

Thanks in advance
Adolfo Barragan