Forums / Developer / Override for ezobjectrelation.tpl

Override for ezobjectrelation.tpl

Author Message

Pavel Konovalov

Tuesday 14 November 2006 8:20:00 am

Hi 2 all!
Excuse my ignorance, but I'm new in eZ Publish.
I want to make override for nex template:
"content/datatype/view/edit.tpl"
I use next condition:

[assigned_to]
Source=content/datatype/view/ezobjectrelation.tpl
MatchFile=content/datatype/view/ezobjectrelation.tpl
Subdir=templates
Match[class_identifier]=myobject
Match[attribute_identifier]=attribute1

This file situated in:
extension/myextension/design/standart/templates/content/datatype/view/ezobjectrelation.tpl

This construction works, but all another attribute with datatype "Object relation" used this file too.

How can I use one template in one case and other template in other case?

Are you gangsters?!
No, we are Russians.

Claudia Kosny

Tuesday 14 November 2006 2:22:33 pm

Hi Pavel

Try to put your override in a different folder and adapt the override.ini accordingly. If you replicate the folder structure EZ automatically uses the override even without a specific override condition in the ini file, which is part of the automatic fallback design:
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/designs/design_combinations#automatic_fallback

Claudia

Pavel Konovalov

Wednesday 15 November 2006 4:14:00 am

Hi Claudia.
Thank you.
You're right.

Are you gangsters?!
No, we are Russians.