[Zope] Identifying a page in DTML
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Mon, 24 Jun 2002 15:27:36 +0200
On Mon, 2002-06-24 at 15:25, Ed Leafe wrote:
> <newbie alert>
>
> I'd like to include some text in my standard_html_header file for
> certain pages, but not for others. I'm not sure how to construct the
> test for the page, though. If I use:
>
> <dtml-if expr="id='myPage'">
>
> that fails because 'id' is not a string. What is the proper way to
> perform this kind of test?
>
> </newbie alert>
hi, use getId() for this...
<dtml-if "getId()=='index_html'">
...
</dtml-if>
greetings, maik
--
Maik Jablonski Deutsche Zope User Group
www.zfl.uni-bielefeld.de www.dzug.org