Forums / Setup & design / attribute_edit_gui & temporary_object_attribute

attribute_edit_gui & temporary_object_attribute

Author Message

Rémy Limouzin

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 :)

Maxime Thomas

Thursday 28 August 2008 11:31:43 pm

Hi,

Are you sure that the temporary attribute is setted and is in the good type (ezcontentclassattribute) ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas