[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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>&lt;dtml-elif expr=3D"id =3D=3D =

'Manage'"&gt;<BR></STRONG>&nbsp;&lt;td width=3D"16%" bgcolor=3D"#00CCFF" =

class=3D"tableEntryActive"&gt;<BR>&nbsp; &lt;h1 =
class=3D"verdlink"&gt;&lt;a=20
href=3D"IISPORTAL"&gt;Home&lt;/a&gt;&lt;/h1&gt;<BR>&nbsp; &lt;h1=20
class=3D"verdlink"&gt;&lt;a href=3D"Manage"&gt;News=20
Management&lt;/a&gt;&lt;/h1&gt;<BR>&nbsp;&nbsp; =
&lt;ul&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;dtml-in =
expr=3D"Manage.objectValues('Folder')"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;li&gt;&lt;a =
href=3D"&amp;dtml-absolute_url;?search=3D"""&gt;&lt;dtml-var=20
title&gt;&lt;/a&gt;&lt;/li&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/dtml-in&gt;<BR>&nbsp;&nbsp; &lt;/ul&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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--