Forums / Setup & design / class group match condition for edit template

class group match condition for edit template

Author Message

Nathalie Grimaud

Monday 18 December 2006 1:31:03 am

I did not have any problem to use the 'class_group' match condition for node/view/full.tpl source but I can't apply the same condition for content/edit.tpl.

Is there anybody who could do it?

Nathalie

Kristof Coomans

Monday 18 December 2006 3:06:10 am

Hello Nathalie

object, class, class_identifier, parent_class, parent_class_identifier seem to be available for content/edit.tpl (see kernel/content/attribute_edit.php), but not class_group.

For content/edit_languages.tpl:
object

For content/edit_draft.tpl and content/edit_conflict.tpl:
object
class
class_identifier
class_group

(all in eZ 3.9 RC2)

The documentation at http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_override_conditions seems to be wrong, and it only lists content/edit.tpl while the content/edit view uses other templates too.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nathalie Grimaud

Monday 18 December 2006 3:40:30 am

Thanks a lot Kristof for this clear explanation.

The content/edit.tpl override works perfectly with the parent_class_identifier match condition.