[ZPT] plone styles in zpt macros file

Dieter Maurer dieter at handshake.de
Tue Jul 8 21:16:28 EDT 2003


Exteam wrote at 2003-7-8 09:10 +0100:
 > i have installed plone in my linux box which installed
 > zope.
 > now i have a folder abc in root (/abc).
 > i have a ZPT macros file in abc starting with 
 > the first  line as:
 > --div metal:define-macro="my_macro1"--

What a funny syntax...

  Usually, it looks like "<div ...>".

 > now i want to call plone's header & footer files
 > written in dtml. these files are stored in the
 > /portal_skins/plone_templates .
 > how do i call them in my ZPT macros file?
 > i had used 
 > 
 > --div tal:content="structure
 > here/standard_html_header"--
 > 
 > to call the header.it actually calls the header, but
 > gives style sheet errors in the page like 
 > "document.all.content.style is not null or an object".

That looks like javascript errors...

Have you had a look at the generated HTML source?

 > More over it doesn't display any of the content
 > present in the ZPT macros file.

Who is "it"?

 > But in the same way another dtml method in the same
 > directoy called check_status does the same job.
 > ie calls the same header file using the following
 > statement
 > "--dtml-var standard_html_header--".
 > It works perfeclty here.
 > what is the problem? why doesn't it work in  the ZPT
 > file?

I do not know. Beside the funny syntax (which should not work),
there is no smoking gun here ...


Dieter



More information about the ZPT mailing list