Forums / Setup & design / recursive override
paul bolger
Sunday 09 September 2007 8:21:28 pm
I need to override a template for the grandchildren of a node.
Match[node] doesn't work, Match[parent_node] seems to only affect the children, Match[navigation_part] doesn't seem to work at all...
I've tried - guessing, as a last resort! - Match[subtree] but that doesn't work either.
Is this possible? The documentation for override conditions is a little... sketchy!
For those interested, my use-case is that I'm putting calendar events into 'year' subfolders to reduce the amount of future clutter.
Paul Bolger
Kåre Køhler Høvik
Monday 10 September 2007 12:45:08 am
Hi
Can you work around this by overriding the template using, depth, class, parent_class and section ( perhaps more ) conditions at the same time.
See also: http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_override_conditions
Kåre Høvik
Monday 10 September 2007 7:32:35 pm
Hi Kåre
So I could conceivably use parent_node + depth? Is depth in this context relative to the specified node, or is it absolute?
Would the following:
Match[parent_node]=2477 Match[depth]=2
give you two levels below node 2477, or two levels below the top level?
As a matter of interest, how does navigation_part_identifier work? I would expect it to affect any node, or nodes, whose url includes a string, is this not the case?
Thanks