Wednesday 06 August 2008 7:20:45 am
<b>Hello</b> i look for use the template function 'attribute_edit_gui' with an ezcontentobjectattribute how comme from a contentclassattribute.
{* full/article_test.tpl *}
<div style="border:1;">
{def $class=fetch( 'content', 'class', hash( 'class_id', 2 ) )}
<p>$class.name = {$class.name|wash}</p>
{set $attribute = $class.data_map['title'].temporary_object_attribute}
<p> : $attribute : {$attribute} : {attribute_edit_gui attribute=$attribute} : {attribute_view_gui attribute=$attribute} : {$attribute|attribute(show,1)} : </p>
{set $attribute=$node.object.data_map['title']}
<p> : $attribute : {$attribute} : {attribute_edit_gui attribute=$attribute} : {attribute_view_gui attribute=$attribute} : {$attribute|attribute(show,1)} : </p>
</div>
This work fine for $attribute=$node.object.data_map['title'] But nothing whith $class.data_map['title'].temporary_object_attribute some one can help me ? thanks all :)
|