Illegal page template footer
Hi all, I want to have a set of header/footer page templates with a table element opening in the header and closing in the footer, for global formatting reasons. Of course, Zope complains that there is no opening <td> tag to match the closing </td> tag and using macros doesn't help. Will I have to use a python script to print the text, or is there a way to fool Zope into thinking the code is legal? And please don't mention dtml... Thanks, Chris
On 21.Feb 2005 - 15:20:58, Chris Wilton wrote:
Hi all,
I want to have a set of header/footer page templates with a table element opening in the header and closing in the footer, for global formatting reasons. Of course, Zope complains that there is no opening <td> tag to match the closing </td> tag and using macros doesn't help.
Macros do help, I do this since 1 year and it works. Define a macro for your header and footer and set a slot for the real content. Or do you mean that you need header and footer in separate page-template-files and you use them elsewhere separated too? Then I guess there is no way but a python script, as page templates need to have correct XHTML-Code. Andreas -- You are capable of planning your future.
participants (2)
-
Andreas Pakulat -
Chris Wilton