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.