you don't "include ZPTs" you use macros defined elsewhere. say, you have a ZPT page somewhere with the name "custom_zpt". inside of custom_zpt you define macros:: <metal:block define-macro="my_greeting"> <p><b>Hello World</b></p> </metal:block> then you can use that in other templates like so:: <metal:block use-macro="here/custom_zpt/macros/my_greeting" /> that's how you reuse stuff with templates. you can also put TAL-statements into the macro when you define it, the TAL code will then be executed in the context of the page that uses the macro. jens On Friday, August 9, 2002, at 12:29 , Simon Michael wrote:
"Edward Ing" <edwardbying@hotmail.com> writes:
But the power of ZPT comes when you put ZPT's inside ZPT's. You have a main ZPT which has a header ZPT and a footer ZPT and a body ZPT and a left side bar ZPT.
Hi Edward,
this sounds like something I want to do - anything more you can say about it ? Do you need to strip the HTML header & footer from the ZPTs you're including.. or not ?
-Simon
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )