|
Thursday 21 April 2011 11:36:12 pm
Comment67488
"
Hi Marko, Thanks for your suggestion. Can you point me to any info that explains how to use the attribute edit gui preferably step by step?
"
Actually it's really simple to use attribute_edit_gui, look at the docs:
- http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Visualization/attribute_edit_gui
But what's a little bit more complicated is to make this hidden inputs for other attributes. The syntax of this input fields is something like this:
<input type="hidden" name="ContentObjectAttribute_id[]" value="#id_of_the_attribute#" />
<input type="text" name="ContentObjectAttribute_ezstring_data_text_#id_of_the_attribute#" value="#value_of_the_attribute#" /> (note that you need both this inputs for every attribute) Here the "ezstring_data_text" part is not the same for every attribute, it depends of the type of attribute. Take a look at the edit templates in "admin2" or "standard" design and you should get it. I know that is not easy and requires a little bit of digging through the templates but it's the best solution I can think of. An alternative way could be to create a custom module that changes only this one attribute, but this would be a little bit of an overkill.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|