attribute_view_gui into a variable???

Author Message

Douglas Johnson

Tuesday 12 August 2003 9:58:17 am

How can I get the value of an {attribute_view_gui} into a variable?

Alex Jones

Tuesday 12 August 2003 10:18:43 am

For an XML text field you should be able to use something along the lines of:

$content_version.data_map.YOUR_FIELD.data_text

or

$content_version.data_map.YOUR_FIELD.content.output.output_text

The first provides access to the RAW XML, the second is the rendered XML. Other datatypes should have relatively close solutions.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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