[Zope] Page Templates and dtml
Sam Collett
Sam.Collett@gp-b81091.trent.nhs.uk
Fri, 14 Dec 2001 11:33:26 -0000
Which of these are easier to use?
I have the following in a template:
<html metal:define-macro="master">
<head>
<title tal:content="template/title">The title</title>
<link rel="stylesheet" href="/NewPCT/css/default.css" type="text/css">
</head>
<body>
<img src="&dtml-var BASE2;/images/logo" width="420" height="60"
align="right" alt="Logo">
<div metal:define-slot="main">
The contents
</div>
</body>
</html>
What I want is img src="/directory/images/logo"
where the /directory part may change or become blank
It work when the document is a dtml document, but how do you get it to work
using a page template.
I have looked at the Automatic navigation example, but am not sure how to
get it to work with my template. The automatic navigation would also have to
exclude some directories - e.g. style, images