Template Access To Embedded Object's Class param

Author Message

Craig Hirsch

Tuesday 26 July 2005 3:47:49 pm

I'm testing a 3.5.2-3.6.1 upgrade. I'm having a few problems with my 3.5.2 templates running under 3.6.1. Here is one:

When I embed an object in an XML text field with the following arguments:

<embed href='ezobject://291' size='300px' align='center' class='popup_block' foo='bar' />

I could access the "class" parameter from my embed override template using $object_parameters.class under version 3.5.2. In version 3.6.1, the other parameters ('size', 'align' and 'foo') are accessible using this method, but class is not.

So, how do I access an object's 'class' parameter in my embed override template in 3.6.1?

--
chirsch{AT}gmail{d.t}com

Ɓukasz Serwatka

Wednesday 27 July 2005 1:02:16 am

Use $classification, this variable returns class name if exists

<div class="{section show=ne($classification|trim,'')}{$classification|wash}{/section}">something</div>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/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 22:13:44
Script start
Timing: Jan 18 2025 22:13:44
Module start 'layout'
Timing: Jan 18 2025 22:13:44
Module start 'content'
Timing: Jan 18 2025 22:13:45
Module end 'content'
Timing: Jan 18 2025 22:13:45
Script end

Main resources:

Total runtime0.6952 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.0057 590.3516152.6406
Module start 'layout' 0.00570.0043 742.992239.4766
Module start 'content' 0.01010.6834 782.4688532.8125
Module end 'content' 0.69350.0017 1,315.28138.1250
Script end 0.6952  1,323.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5424160.0002
Check MTime0.00160.2269160.0001
Mysql Total
Database connection0.00080.117710.0008
Mysqli_queries0.645292.8075540.0119
Looping result0.00050.0734520.0000
Template Total0.664095.520.3320
Template load0.00260.380920.0013
Template processing0.661395.124420.3307
Template load and register function0.00010.015210.0001
states
state_id_array0.00080.117510.0008
state_identifier_array0.00100.140220.0005
Override
Cache load0.00220.3115130.0002
Sytem overhead
Fetch class attribute can translate value0.00090.127920.0004
Fetch class attribute name0.00200.290240.0005
XML
Image XML parsing0.00120.179220.0006
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00120.1787240.0001
String conversion0.00000.001740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs