[Zope] How can I get context property in DTML ? (example)

KLEIN Stéphane stephane at harobed.org
Mon May 23 04:37:07 EDT 2005


Hello,

In DTML I would like to do that :

I've this directory :

dir1
  |---- dir2
  |---- dir3

"dir1" has property bar=1
"dir2" has property bar=2
"dir3" has property bar=3

I would like a "foo_html" DTML Document file which display the property 
bar. This file is place in dir1.

Exemple :

When I go to dir1/foo_html => I show 1
When I go to dir1/dir2/foo_html => I show 2
When I go to dir1/dir3/foo_html => I show 3

How can I do it ?

Thanks for your help.
	-- Stéphane



More information about the Zope mailing list