Override on parent_node ?

Author Message

Marco Zinn

Thursday 06 November 2003 1:33:28 pm

Our "line view" template for articles does not show the publish and modification time, as we usually do not need this.
But for some "news" folders, we want to override the line view template for "article", matching on parent_node .
The documentation tells us, that this is possible (http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates), but it does not work for us.
The Template-Match-Block in override.ini is at the second position (just after the pagelayout override for that siteaccess), but still, the "general" override template for articles for that siteaccess is used.

So: Has anyone had success with overriding on parent_node?
If so, please provide the full override.ini, if possible.

I saw some old postings here with persons having problems, but also some "success" postings.

PS: Yes, we cleared all caches ;)

Marco
http://www.hyperroad-design.com

Paul Forsyth

Thursday 06 November 2003 3:20:55 pm

Yip, i've had the override working when matching by parent_node.

Your position sounds fine. I find that the overrides are sensitive to file positions, but near the top should do the trick...

Ok, your cache is fine, have you checked whether the admin can see it (through setup/templates) and if your file permissions are ok?

paul

Marco Zinn

Wednesday 12 November 2003 3:43:04 pm

Hm, it does not work still.
Can you please provide your override.ini snippet?
Did you just override on parent_node or did you combine it with class_id or so?
We just have tried overriding on parent_node ID, but it has no effect.

Marco
http://www.hyperroad-design.com

Paul Forsyth

Thursday 13 November 2003 1:22:57 am

Heres the snippet.

# Articles
[full_home_article]
Source=node/view/full.tpl
MatchFile=node/full_home_article.tpl
Subdir=templates
Match[class]=17

[full_biography_article]
Source=node/view/full.tpl
MatchFile=node/full_biography_article.tpl
Subdir=templates
Match[class]=2
Match[parent_node]=45

[full_article]
Source=node/view/full.tpl
MatchFile=node/full_article.tpl
Subdir=templates
Match[class]=2

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.