[Zope-CMF] ZPT Problems

Joerg Lehmann joerg@luga.de
Sat, 15 Dec 2001 16:10:11 +0100


Hi Nicolas,

On 14.12.01, Keller Nicolas wrote:
> Hi!
> 
> I'm building a portal with CMF and I've just finished the main layout of the
> site (in zpt). I've created 4 new skin folders named after the original ones
> (my_content, my_control,...) and already put my new main_template into it.
> It works kind of perfect put now there's a strange problem: When I want to
> customize one of the given templates (like link_view, image_view, etc...)
> Zope uses the new main_template with it before it copys the file into the
> my_* - folder. This doesn't make sense to me - in my opinion it's supposed
> to put the file into the new folder without touching it, otherwise every
> file is kind of overloaded.

I assume, you mean it "expands" the METAL-macros. The only possibility for me 
to get rid of this annoying behaviour was to set expand=0 in the definition of 
the class PageTemplate (cf. lib/python/Products/PageTemplates/PageTemplate.py). 

HTH, 

	Joerg Lehmann