Could you demo a simple macro to do it? I did use the tal: method but I want to include further HTML code in a ZPT file. When I have this as a file of type 'text/html' it is included rendered, e.g. <font face="Arial" size="2"> Appears in the browser literally as <font face="Arial" size="2"> and viewing the source shows <font face="Arial" size="2"> When I make the file to be included of type 'text', it produces an XML compilation error. Eddie. -----Original Message----- From: Lennart Regebro [mailto:regebro@nuxeo.com] Sent: 30 January 2004 14:03 To: Edward Comber; zope@zope.org Subject: Re: [Zope] #include ... From: "Edward Comber" <zope@comber.org>
but this is DTML and I'm trying to do it through ZPT.
That depends on what you want to include. To "include" more ZPT code you use macros. But to just include the rendering of something else, you use the tal:contents command.
To include Zope files I thought I needed to know their extension but the extension is not displayed in Zope and I can't find the files on disk - I presume they are stored in the DB. I came to the conclusion that you refer to them as objects simply by name.
Exactly.