Template override problem - Match[classification]

Author Message

Petr Mifek

Wednesday 27 February 2008 11:47:36 am

Hi all,

I have a problem with embedding objects with "class" attribute set which in turn contains embedded objects without that attribute set. I've been looking through the forums and reported issues and nothing found i'd like to ask your opinion on this.

Example:

1) standard 4.0 ezwebin installation.
2) create a blog post with some image embedded in it's body. Leave class attribute in OE to [None], or in plain xml, don't include the class attribute at all in the <embed> tag.
3) embed this blog post on some frontpage, center column, with class set to "highlighted_object"

The problem is, that on that Frontpage from step 3, the embedded image in the blog post will "inherit" the "highlighted_object" classification and will change it's appearance in the blog post - it will use the override template for content/view/embed.tpl on the condition Match[classification]=highlighted_object. In my opinion, it should stay intact, that is in this case use the content/view/embed.tpl from the Match[class_identifier]=image declaration.

The workaround I use is to define AvailableClass[]=None in content.ini for embed and use that - nothing more and it works as I expect.

Am I missing something or is this a bug? Thanks for your opinion.

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 30 2025 21:37:23
Script start
Timing: Jan 30 2025 21:37:23
Module start 'layout'
Timing: Jan 30 2025 21:37:23
Module start 'content'
Timing: Jan 30 2025 21:37:23
Module end 'content'
Timing: Jan 30 2025 21:37:23
Script end

Main resources:

Total runtime0.0221 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2578151.2266
Module start 'layout' 0.00510.0036 739.4844220.7188
Module start 'content' 0.00870.0119 960.2031997.6953
Module end 'content' 0.02070.0014 1,957.898429.9922
Script end 0.0221  1,987.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.0528140.0002
Check MTime0.00094.2447140.0001
Mysql Total
Database connection0.00072.999610.0007
Mysqli_queries0.002210.065230.0007
Looping result0.00000.053910.0000
Template Total0.00104.710.0010
Template load0.00073.330310.0007
Template processing0.00031.381910.0003
Override
Cache load0.00052.091710.0005
General
dbfile0.00167.006380.0002
String conversion0.00000.039940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs