[Zope] #include ...
Edward Comber
zope at comber.org
Fri Jan 30 13:12:50 EST 2004
Actually I have that bit working
It needed <div macro....>
Very much a trial and error system this.
Eddie.
-----Original Message-----
From: Edward Comber [mailto:comber at cix.co.uk]
Sent: 30 January 2004 15:09
To: Lennart Regebro; Edward Comber; zope at zope.org
Subject: RE: [Zope] #include ...
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 at nuxeo.com]
Sent: 30 January 2004 14:03
To: Edward Comber; zope at zope.org
Subject: Re: [Zope] #include ...
From: "Edward Comber" <zope at 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.
More information about the Zope
mailing list