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> The method local_nav should only be opened with the standard_html_header when there is local_nav only in this folder. please help
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
Stephan Richter wrote:
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....
.... If I am not mistaken: if it returns a list, you can. -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (3)
-
Andre Schubert -
Bill Anderson -
Stephan Richter