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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:28:47
Script start
Timing: Jan 31 2025 06:28:47
Module start 'layout'
Timing: Jan 31 2025 06:28:47
Module start 'content'
Timing: Jan 31 2025 06:28:47
Module end 'content'
Timing: Jan 31 2025 06:28:47
Script end

Main resources:

Total runtime0.0145 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.2656151.2266
Module start 'layout' 0.00490.0025 739.492236.6797
Module start 'content' 0.00730.0057 776.171990.3125
Module end 'content' 0.01310.0014 866.484429.9922
Script end 0.0144  896.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.1852140.0002
Check MTime0.00107.2101140.0001
Mysql Total
Database connection0.00085.487910.0008
Mysqli_queries0.002114.245530.0007
Looping result0.00000.173010.0000
Template Total0.00107.210.0010
Template load0.00085.461510.0008
Template processing0.00031.728810.0003
Override
Cache load0.00063.815210.0006
General
dbfile0.001510.644580.0002
String conversion0.00000.054440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs