Template override confused

Author Message

Aya Brea

Saturday 29 November 2003 3:58:33 pm

I included this in my design's override.ini.append file:

[folderview]
Source=node/view/full.tpl
MatchFile=classview/folderview.tpl
Subdir=templates
Match[class]=1

Cause I want to use folderview.tpl to view folder only. But when I try to view an article (which have class id = 2). It show nothing, even it doesn't include the template file in pagelayout.tpl?!?!!

So confused, if I add another block like this in to the override.ini.append. It worked! This make I cannot understand...

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

Arash Molavi

Sunday 30 November 2003 1:52:35 pm

You didn't have a doublette of the [folderview]?

Aya Brea

Sunday 30 November 2003 9:25:27 pm

oops, actually the name is different, copy'npaste mistake :D

I have solved the problem by change the override.ini.append to following:

[generalview]
Source=node/view/full.tpl
MatchFile=node/view/full.tpl
Subdir=templates

This block will match everything.

[folderview]
Source=node/view/full.tpl
MatchFile=classview/folderview.tpl
Subdir=templates
Match[class]=1

This block match class 1.

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