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.

eZ debug

Timing: Jan 18 2025 19:24:32
Script start
Timing: Jan 18 2025 19:24:32
Module start 'layout'
Timing: Jan 18 2025 19:24:32
Module start 'content'
Timing: Jan 18 2025 19:24:33
Module end 'content'
Timing: Jan 18 2025 19:24:33
Script end

Main resources:

Total runtime1.1173 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0156152.6250
Module start 'layout' 0.00760.0057 740.640639.4453
Module start 'content' 0.01331.1022 780.0859516.9766
Module end 'content' 1.11550.0017 1,297.06258.1563
Script end 1.1172  1,305.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3110160.0002
Check MTime0.00130.1202160.0001
Mysql Total
Database connection0.00110.096510.0011
Mysqli_queries1.067195.5082540.0198
Looping result0.00080.0729520.0000
Template Total1.069895.820.5349
Template load0.00210.184420.0010
Template processing1.067795.566720.5339
Template load and register function0.00020.016810.0002
states
state_id_array0.00150.135110.0015
state_identifier_array0.00190.169920.0009
Override
Cache load0.00170.1497120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.076920.0004
Fetch class attribute name0.00110.096130.0004
XML
Image XML parsing0.00080.075520.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00080.0678160.0000
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs