<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> ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
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
participants (2)
-
Ed Leafe -
Maik Jablonski