Hi, I'm setting up a site that has a different Zope folder per section of content. Each section has multiple pages but each page has a common menu down the left hand side of the page. I figured I would have one main template at the top level, and then a 'sub-template' within each folder that fills a 'menu' slot within the main template. The subtemplate will have a 'content' slot which each individual page will fill with content. However, I tried setting this up, assuming the 'sub-template' would need to be defined as a macro, as well as use-templating the main template. Zope complains, however, that a page can't be both of these things! Any ideas on how to do this 'properly' ? Thanks, P PETER SKIPWORTH SYSTEM ADMINISTRATOR TOUCHCORP LTD TELEPHONE 03 9635 2626 www.touchcorp.com
On Mon, 17 Mar 2003 15:43:27 +1100 GMT (..5:43 where i live(GMT+1) ) pskipworth@touchcorp.com asked the Zope mailinglist about the following: ptc> Hi, ptc> I'm setting up a site that has a different Zope folder per section of ptc> content. Each section has multiple pages but each page has a common menu ptc> down the left hand side of the page. ptc> I figured I would have one main template at the top level, and then a ptc> 'sub-template' within each folder that fills a 'menu' slot within the ptc> main template. The subtemplate will have a 'content' slot which each ptc> individual page will fill with content. what about making just one "main"-template that you use for all pages, with just the "menu"-template exporting your menu-macro in the folders? - Then you can have something like <div class="menu" metal:fill-slot="here/menutemplate/macros/menu"> </div> in your "main" template.. :) -- Geir Bækholt
participants (2)
-
Geir Bækholt -
pskipworth@touchcorp.com