[Zope] help needed: which folder am i in?
Danni Efraim
danni@galdrion.com
Wed, 25 Jul 2001 18:50:32 +0200
Hey, you are using an object-oriented structure here!
Just include the following code in your leftbox method:
<dtml-if extended_navigation>
<dtml-var extended_navigation>
</dtml-if>
Now, create a DTML-method named "extended_navigation" in every folder which
should have such, and fill it up with whatever you like.
You've got to get into the Zope way of thinking, my friend :)
/Danni
> i have got a folder 'x' with a method 'leftbox'.
> in the folder 'x' there are folder 'y' and 'z' in 'y' and 'z' there are
> index_html documents which include the 'leftbox'-method.
> i want my 'leftbox' to know where ist is - basically in which folder (not
> which document) it was included.
> like something like this dummy-cod:
> <dtml-if "folder_where_this_index_html_where_this_leftbox_is_included =
> 'y'">
> extended navigation for folder 'y'
> </dtml-if>
> <dtml-if "folder_where_this_index_html_where_this_leftbox_is_included =
> 'z'">
> extended navigation for folder 'z'
> </dtml-if>
> any ideas?
>
> thx in advance
> wolki