Sam Collett writes:
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">
<img src="..." ... tal:attributes="src string:${BASE2}/images/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. Why do you not ask your ZPT questions on the ZPT mailing list?
Dieter