Share » Forums » General » Overriding an overrider lol

Overriding an overrider lol

Overriding an overrider lol

Tuesday 05 August 2003 11:48:53 am - 3 replies

Author Message

Alex Jones

Tuesday 05 August 2003 1:24:04 pm

Dave, are you actually using a node override for that folder which you want to override? Could you post the part of your override.ini.append so we can look at it?

In the meantime, here is an example of overriding a specific node which is of a class that also has an override associated with it:

[full_steelchart]
Source=node/view/full.tpl
MatchFile=full_steelchart.tpl
Subdir=templates
Match[node]=842

[article]
Source=node/view/full.tpl
MatchFile=article.tpl
Subdir=templates
Match[section]=3

Also, you may want to check the order of your overrides. Put the most specific (node) before the less specific.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

David Barker

Tuesday 05 August 2003 2:52:02 pm

Once again your advice has been great :) I've sorted it.
I was using the template editor thing that is under 'Set Up' in the Admin, and I couldn't see a way to change the order of the overrides so I didn't think it was important about the order but when you said I should look at the order, I changed my override.ini file.
Just curious... why is there no way to change the order in the admin interface?

Oh well - it's fixed! Thanks a lot!!!

Dave

Alex Jones

Wednesday 06 August 2003 8:28:31 am

Glad to hear you have sorted it out! You may want to post the ordering issue as a suggestion for a future revision. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu