Forums / Developer / attribute_result_gui

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