[Zope] dtml question- testing folder existence in url

Kelley, Sean SKelley@ci.santa-rosa.ca.us
Wed, 28 Aug 2002 14:22:51 -0700


Hi,
I want to provide custom content (especially in CMF) depending on whether
someone is in a particular folder or not.  If I am in the proverbial widget
folder I want to display only widget news and files.  How does one test to
see if the folder=widgets is in the url using DTML? Would it be best to test
by full url or folder in path- i.e.- http://domain.com/widgets or
../widgets/.. somewhere.

Sean Kelley
Technology Coordinator
City of Santa Rosa
Phone: (707) 543-3353
Pager:  (707) 581-3061