Hi I've tried document_id... it returns the name of the method which is called in the header of my document. This method is used to make a navigation bar ok ? So I get every document in a folder and like to get the id of the current one to make its name appears in bold in the menu... Here's my code for sidebar... a little bit porky piece of code. I someone could upgrade it, it would be welcomed :) <dtml-with expr="PARENTS[_.len(PARENTS)-2]"> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="130"> <TD><dtml-with expr="PARENTS[-1].images_general"><dtml-var "shim.tag(width=130)"></dtml-with></TD> <dtml-in "navigate_filter('donav','yes',_.None)" sort=title_or_id skip_unauthorized=1> <dtml-with expr="PARENTS[0]"><dtml-call "REQUEST.set('myparent',id)"></dtml-with> <dtml-if "myparent==id"> <TR><TD><dtml-with images_section><dtml-var sidebar_selected_top></dtml-with></TD></TR> <TR><TD bgcolor="#FFFFFF"><A HREF="<dtml-var absolute_url>" class="menulink"><dtml-var title></A></TD></TR> <TR><TD> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0> <dtml-if "navigate_filter('donav','yes','DTML Document')"> <TR><TD colspan="2"><dtml-with expr="PARENTS[0].images_section"><dtml-var sidebar_selected_bottom_submenu></dtml-with></TD></TR> <dtml-in "navigate_filter('donav','yes','DTML Document')" skip_unauthorized=1> <TR> <TD>#debug : <dtml-var document_id><BR></TD> <TD><dtml-with expr="PARENTS[-1].images_general"><dtml-var "shim.tag(width=9)"></dtml-with></TD> <TD bgcolor="#DDDDDD" width="121"><A HREF="<dtml-var absolute_url>" class="menusmalllink"><dtml-var title></A></TD> </TR> </dtml-in> <dtml-else> <TR><TD><dtml-with images_section><dtml-var sidebar_selected_bottom></dtml-with></TD></TR> </dtml-if> </TABLE> </TD></TR> <dtml-else> <TR><TD><A HREF="<dtml-var absolute_url>" class="menulink"><dtml-var title></A> </dtml-if> </TD></TR> </dtml-in> </TABLE> </dtml-with> Michel Pelletier wrote:
-----Original Message----- From: Evan Simpson [mailto:evan@tokenexchange.com] Sent: Tuesday, August 24, 1999 3:51 PM To: Michel Pelletier; 'Michael Bernstein' Cc: Arnaud Lecat; ZOPE Subject: Re: [Zope] Simple question (again)
As of Zope 2.0b4, at least, 'document_id' and 'document_title' are valid for both Documents and Methods. Apart from that detail, I quite agree. I have found Method titles to be mildly useful as a sort of brief description of the method, though.
Augh!!! You're right. Ok, I'm done with this thread. Let's just sweep this dirty little bit of Zope under the carpet. ;)
-Michel
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
-- >> WinErr: 080 Clavier introuvable - Veuillez appuyer sur n'importe quelle touche pour continuer. << Arnaud LECAT >> Email: lecat@hexanet.fr >> WWW page:www.hexanet.fr/~lecat HEXANET >> http://www.hexanet.fr Z.A. Farman sud - 9 rue Roland Coffignot BP 415 - 51689 Reims Cedex 2 - France phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06