[Zope] container id
Tony Flanagan
tony.flanagan@engitech.ie
Mon, 22 Oct 2001 17:27:30 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0083_01C15B1E.D3DCE460
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Can anybody help with a problem I'm having. I've just started using Zope =
and I'm developing a reasonably simple intranet. The point at which I'm =
having problems is trying to write a dynamic navigation bar. I have a =
dtml method called from my standard header which will display certain =
blocks of dtml dependent on the id of the containing folder. This works =
fine when the documents are contained in a one folder system, but I have =
a folder with sub-folders and I would like to be able to display some =
dtml based on the main folders id. Sure thats clear but hoping for a =
response so.....
This is part of the method, what I'd like is that a document within a =
sub-folder of 'Manage' will also display the links:
<dtml-elif expr=3D"id =3D=3D 'Manage'">
<td width=3D"16%" bgcolor=3D"#00CCFF" class=3D"tableEntryActive">
<h1 class=3D"verdlink"><a href=3D"IISPORTAL">Home</a></h1>
<h1 class=3D"verdlink"><a href=3D"Manage">News Management</a></h1>
<ul>
<dtml-in expr=3D"Manage.objectValues('Folder')">
<li><a href=3D"&dtml-absolute_url;?search=3D"""><dtml-var =
title></a></li>
</dtml-in>
</ul>
Thanks
Tone
------=_NextPart_000_0083_01C15B1E.D3DCE460
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.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Can anybody help with a problem I'm =
having. I've=20
just started using Zope and I'm developing a reasonably simple intranet. =
The=20
point at which I'm having problems is trying to write a dynamic =
navigation bar.=20
I have a dtml method called from my standard header which =
will display=20
certain blocks of dtml dependent on the id of the containing folder. =
This works=20
fine when the documents are contained in a one folder system, but I have =
a=20
folder with sub-folders and I would like to be able to display some dtml =
based=20
on the main folders id. Sure thats clear but hoping for a response=20
so.....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is part of the method, what I'd =
like is that a=20
document within a sub-folder of 'Manage' will also display the=20
links:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><STRONG><dtml-elif expr=3D"id =3D=3D =
'Manage'"><BR></STRONG> <td width=3D"16%" bgcolor=3D"#00CCFF" =
class=3D"tableEntryActive"><BR> <h1 =
class=3D"verdlink"><a=20
href=3D"IISPORTAL">Home</a></h1><BR> <h1=20
class=3D"verdlink"><a href=3D"Manage">News=20
Management</a></h1><BR> =
<ul><BR> =20
<dtml-in =
expr=3D"Manage.objectValues('Folder')"><BR> =20
<li><a =
href=3D"&dtml-absolute_url;?search=3D"""><dtml-var=20
title></a></li><BR> =20
</dtml-in><BR> </ul></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Tone</FONT></DIV><A=20
href=3D"mailto:tony.flanagan@engitech.ie"></A></FONT></DIV></BODY></HTML>=
------=_NextPart_000_0083_01C15B1E.D3DCE460--