[Zope] dtml-tree

nuno nuno@fccn.pt
Tue, 6 Mar 2001 13:01:52 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_00D4_01C0A63D.9CE3BB00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all !!
I'm trying to use the dtml-tree tag for displaying my folder site =
structure !
The problem is that i want to display only a part of my site structure, =
so=20
i have tried something like this:

<dtml-with "PARENTS[0].SITE.DIR1.DIR2"> -> Path from where i want to =
show the structure
<dtml-var browse>    -> the DTML-method that does the display of the =
tree
</dtml-with>

the funny thing is that, if i do a view in zope of the DTML-method =
browse directly it works, but it=20
fails when i call the method from other place.

Has anyone had a similar problem ?

thanks for all effort, and best regards

Nuno

------=_NextPart_000_00D4_01C0A63D.9CE3BB00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all !!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to use the dtml-tree tag for =
displaying=20
my folder site&nbsp;structure !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The problem is that i want to display =
only a part=20
of my site structure, so </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i have tried something like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-with =
"PARENTS[0].SITE.DIR1.DIR2"&gt; -&gt;=20
Path from where i want to show the structure</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-var =
browse&gt;&nbsp;&nbsp;&nbsp; -&gt; the=20
DTML-method that does the display of the tree</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/dtml-with&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the funny thing is that, if i do a view =
in zope of=20
the DTML-method browse directly it works, but it </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>fails when i call the method from other =

place.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone had a similar problem =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks for all effort, and best=20
regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Nuno</FONT></DIV></BODY></HTML>

------=_NextPart_000_00D4_01C0A63D.9CE3BB00--