[Zope] Some questions want to ask you!

Heiko Stoermer heiko@mig.net
Sat, 04 Sep 1999 21:03:52 +0200


Elaine Kong wrote:

> Hi Heiko,
>
> If i click the link of lib1 in the index1_html, then it will return the introducation and history of lib1,etc.But if i don't want to type every var like <!--#var introducation--><!--#var history-->,etc.I want to use a "in" tag in the index2_html and change the name of introducation and history in each subfolder of lib to 0001,0002,....., so that i can add or change something just in the each subfolder of lib(lib1,lib2,.......).I don't need to change anything in the index2_html.Do i describe it clearly? Can you tell me how can i do that?
>
> Thank you very much.
> Elaine Kong.
>

in index2_html you would put

<dtml-in "PARENTS[0].objectValues('DTML Document')">
     <dtml-var "_['sequence-item']">
</dtml-in>

this means:
in the list of all DTML Documents of the folder in which the document is called
    call the document ("embed" it in the current document)
/in

important note:
if you view your new index2 document in its root folder (the folder it is stored in), this will result in an endless loop, because index2 will find itself in the list of DTML Documents, call itself and recurse infinitely. this means that you cannot test it like that just by clicking on the "view" tab in Zope...

but if you call it from some child folder as showed in you example , this will work properly.

Hope this helps,
Heiko

--
Heiko Stoermer
MIG Augsburg