[Zope-dev] Method LookUp
Stephan Richter
srichter@cbu.edu
Thu, 27 Apr 2000 05:27:21 -0500
At 11:31 AM 4/27/00 +0200, Andre Schubert wrote:
>Hi,
>
>I have a little problem but i have no solution for this. I have a
>project, with many subfolders and their own manager.
>These managers can add a method called local_nav, where they can store
>their local navigation-infos. The standard_header-method should look for
>this local_nav method only in the current folder, but if there is no
>local_nav, then the local_nav-method of the parent folder would be
>opened.
>
>I use this code to look after local_nav:
>
> <dtml-with title_or_id only>
> <dtml-if local_nav>
> <dtml-in local_nav>
> <a href="<dtml-var sequence-item>"><dtml-var sequence-key></a>
> </dtml-in>
> </dtml-if>
> </dtml-with>
Please provide the traceback. You said local_nav is a method, but you
cannot use DTML-IN on a method....
Also use <DTML-WITH id only>, not <DTML-WITH title_or_id only>.
Regards,
Stephan
--
Stephan Richter - (901) 573-3308 - srichter@cbu.edu
CBU - Physics & Chemistry; Framework Web - Web Design & Development
PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391