Thanks Geir. I realized I made a mistake though, what I actually need is: <dtml-if (this page is in the /page folder)> do something </dtml-if> ----- Original Message ----- From: "Geir Bækholt" <geirh@funcom.com> To: "Tom Scheidt" <tom@falsemirror.com> Cc: <zope@zope.org> Sent: Monday, May 15, 2000 2:56 AM Subject: Re: [Zope] URL Recognition
on Friday, May 12, 2000 Tom Scheidt wrote : TS> Id like to do this:
TS> <dtml-if (the current url of this page is /page)> do something </dtml-if>
<dtml-if "PATH_INFO == '/page'> do stuff </dtml-if>
-- Geir Bækholt web-developer/designer geirh@funcom.com http://www.funcom.com
Tom Scheidt | www.falsemirror.com | tom@falsemirror.com ---------------------------------------------------------------------------- -----------
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tom Scheidt Sent: maandag 15 mei 2000 19:39 To: zope@zope.org Subject: [Zope] URL Recognition Question
Thanks Geir.
I realized I made a mistake though, what I actually need is:
<dtml-if (this page is in the /page folder)> do something </dtml-if>
What I do to find out whether a document is in a specific tree is to check its PARENTS: <dtml-in PARENTS> <dtml-if "id == 'folder name'"> <dtml-call "REQUEST.set('bingo', 1)"> </dtml-if> </dtml-in> <dtml-if bingo> do something </dtml-if> Of course, you can restrict your quest to the first PARENT. cb
participants (2)
-
Cornelis J. de Brabander -
Tom Scheidt