attribute_result_gui

Author Message

David Santiso

Monday 14 February 2011 11:31:01 am

Hi,

To print a attribute content I write this:

{attribute_result_gui attribute=$attribute}

But, How can I put the attribute content into a variable?

Thanks,

David

Carlos Revillo

Monday 14 February 2011 12:17:48 pm

maybe you're searching for

{def $content = $attribute.content}

?.

Peter Keung

Monday 14 February 2011 1:14:01 pm

{* Capture output *}
{set-block variable=$stored_output_variable}
    {attribute_result_gui attribute=$attribute}
{/set-block}

{* Output later on... *}
{$stored_output_variable}

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Marko Žmak

Tuesday 15 February 2011 3:02:38 am

"
{* Capture output *}
{set-block variable=$stored_output_variable}
    {attribute_result_gui attribute=$attribute}
{/set-block}

{* Output later on... *}
{$stored_output_variable}
"

Just a note, you have to define the $stored_output_variable using def first. So it should go like this:

{def $stored_output_variable=''}

{set-block variable=$stored_output_variable}
...

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 30 2025 00:49:09
Script start
Timing: Jan 30 2025 00:49:09
Module start 'layout'
Timing: Jan 30 2025 00:49:09
Module start 'content'
Timing: Jan 30 2025 00:49:10
Module end 'content'
Timing: Jan 30 2025 00:49:10
Script end

Main resources:

Total runtime1.1826 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0313151.1953
Module start 'layout' 0.00500.0023 739.226636.6250
Module start 'content' 0.00731.1744 775.8516569.8281
Module end 'content' 1.18170.0008 1,345.679711.8750
Script end 1.1825  1,357.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2557160.0002
Check MTime0.00130.1074160.0001
Mysql Total
Database connection0.00080.067510.0008
Mysqli_queries1.138496.2670640.0178
Looping result0.00050.0437620.0000
Template Total1.155097.720.5775
Template load0.00190.160220.0009
Template processing1.153197.507920.5765
Template load and register function0.00020.013010.0002
states
state_id_array0.00150.123610.0015
state_identifier_array0.00120.102320.0006
Override
Cache load0.00160.1353220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047240.0001
Fetch class attribute name0.00090.080060.0002
XML
Image XML parsing0.00290.242440.0007
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00390.3275250.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs