[Zope] Simple dtml-unless problem
Phil Harris
phil.harris@zope.co.uk
Wed, 13 Sep 2000 12:50:05 +0100
Depending on the object in question id could be a method, so you might want
to try:
<dtml-unless "id() == 'index_html'">
hth
Phil
----- Original Message -----
From: "Tim Hicks" <tim@sitefusion.co.uk>
To: <zope@zope.org>
Sent: Wednesday, September 13, 2000 12:23 PM
Subject: [Zope] Simple dtml-unless problem
> I have the following code in my standard_html_header
>
> <dtml-unless "id == 'index_html'">
> <img src="<dtml-var path>/images/transparent.gif" width=400 height=12
> alt="">
> <H1 align="center"><dtml-var title></h1>
> </dtml-unless>
>
> The problem is, it displays the <img> and <h1> stuff even when the
> page that the standard_html_header is being dropped into is
> index_html. I'm pretty sure I'm missing something really silly here,
> but if anyone could point it out, I'd really appreciate it.
>
> cheers
>
> tim
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )