Fetching id value from class - template_look

Author Message

John Smith

Wednesday 16 July 2008 8:47:07 am

Hi there,

Hope someone can help me. I need to fetch the value related to "id" input field from the class "template_look" in pagelayout.tpl. It is exact after "SiteStyle" combobox.

Please help.

Greg McAvoy-Jensen

Wednesday 16 July 2008 10:26:26 am

Using ezwebin's pagelayout, this worked for me:
$pagedesign_object.current.data_map.id.data_text

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

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 20:48:32
Script start
Timing: Jan 18 2025 20:48:32
Module start 'layout'
Timing: Jan 18 2025 20:48:32
Module start 'content'
Timing: Jan 18 2025 20:48:33
Module end 'content'
Timing: Jan 18 2025 20:48:33
Script end

Main resources:

Total runtime1.1471 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.0055 589.4688152.6406
Module start 'layout' 0.00550.0043 742.109439.4766
Module start 'content' 0.00981.1360 781.5859524.5625
Module end 'content' 1.14580.0013 1,306.14848.1250
Script end 1.1470  1,314.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2915160.0002
Check MTime0.00140.1234160.0001
Mysql Total
Database connection0.00090.074910.0009
Mysqli_queries1.105996.4095540.0205
Looping result0.00050.0474520.0000
Template Total1.109496.720.5547
Template load0.00220.195420.0011
Template processing1.107196.520520.5536
Template load and register function0.00030.022210.0003
states
state_id_array0.00160.137110.0016
state_identifier_array0.00160.139220.0008
Override
Cache load0.00180.1587100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.046520.0003
Fetch class attribute name0.00110.095730.0004
XML
Image XML parsing0.00060.055420.0003
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00080.0708180.0000
String conversion0.00000.000740.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs