Hi Which is the better way to do a site map ? I'm making tests with "tree" but it shows everything from the top, even user folders and control panel ;( Any product or tip to do that ? -- >> 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
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Hi
Which is the better way to do a site map ? I'm making tests with "tree" but it shows everything from the top, even user folders and control panel ;( Use the navigation Product to limit the objects the tree shows :)
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Ok, I've downloaded the Navigation product but the doc is very *light* How do you use it ? (key ? value ?) Andreas Kostyrka wrote:
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Hi
Which is the better way to do a site map ? I'm making tests with "tree" but it shows everything from the top, even user folders and control panel ;( Use the navigation Product to limit the objects the tree shows :)
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
_______________________________________________ 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
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Ok, I've downloaded the Navigation product but the doc is very *light*
How do you use it ? (key ? value ?) Well, you put a donav property on all folders you want it show. (donav="yes") Then, you use this expression instead of objectValues(): navigate_filter('donav',_.None,'Folder') (This finds all Folders that do have a donav attribute) navigate_filter('donav','yes','Folder') (This finds all Folders with donav=='yes') navigate_filter('donav',_.None,_.None) (This finds all objects that do have an donav attribute.)
Also note, that navigate_filter by default surpresses Acquisition, meaning that you don't get all subfolders displayed by default. Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Here's my code. If I have all understood it is supposed to display all objects that have a donav='yes' property.... Everything is displayed with this code... What's wrong :( ? <!--#tree expr="PARENTS[-1]" --> <SPAN CLASS="tree"> <!--#if tree-item-expanded--> <!--#if expr="navigate_filter('donav','yes',_.None)"--> <dtml-with images_general><dtml-var openbook></dtml-with> <!--#/if--> <STRONG><I><!--#var title--></I></STRONG> <!--#else--> <!--#if expr="navigate_filter('donav','yes',_.None)"--> <dtml-with images_general><dtml-var closedbook></dtml-with> <!--#/if--> <!--#var title--> <!--#/if--> </SPAN> <!--#/tree--> Andreas Kostyrka wrote:
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Ok, I've downloaded the Navigation product but the doc is very *light*
How do you use it ? (key ? value ?) Well, you put a donav property on all folders you want it show. (donav="yes") Then, you use this expression instead of objectValues(): navigate_filter('donav',_.None,'Folder') (This finds all Folders that do have a donav attribute) navigate_filter('donav','yes','Folder') (This finds all Folders with donav=='yes') navigate_filter('donav',_.None,_.None) (This finds all objects that do have an donav attribute.)
Also note, that navigate_filter by default surpresses Acquisition, meaning that you don't get all subfolders displayed by default.
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
_______________________________________________ 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
At 11:37 23/08/99 , Arnaud Lecat wrote:
Here's my code. If I have all understood it is supposed to display all objects that have a donav='yes' property.... Everything is displayed with this code... What's wrong :( ?
<!--#tree expr="PARENTS[-1]" --> <SPAN CLASS="tree"> <!--#if tree-item-expanded--> <!--#if expr="navigate_filter('donav','yes',_.None)"--> <dtml-with images_general><dtml-var openbook></dtml-with> <!--#/if--> <STRONG><I><!--#var title--></I></STRONG> <!--#else--> <!--#if expr="navigate_filter('donav','yes',_.None)"--> <dtml-with images_general><dtml-var closedbook></dtml-with> <!--#/if--> <!--#var title--> <!--#/if--> </SPAN> <!--#/tree-->
The tree tag takes a branches or branches_expr attribute to name a method or expression that will for any given object return it's branches, or subobjects, to be displayed. By default, it will call objectValues on any object, resulting in ALL objects being displayed. Common practice is to use branches_expr="objectValues(['Folder', 'DTML Document'])", which results in all Folder objects and DTML Documents being displayed. The navigate_filter method is a method specially devised for use in the branches_expr attribute of the tree tag. It in turn calls the objectValues method, but filters on the results of that call, to further refine what objects will be used. With this knowledge, your code should read: <!--#tree expr="PARENTS[-1]" branches_expr="navigate_filter('donav','yes',_.None)"--> <SPAN CLASS="tree"> <!--#if tree-item-expanded--> <dtml-with images_general><dtml-var openbook></dtml-with> <STRONG><I><!--#var title--></I></STRONG> <!--#else--> <dtml-with images_general><dtml-var closedbook></dtml-with> <!--#var title--> <!--#/if--> </SPAN> <!--#/tree--> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
I still don't manage to do what I want to do ;( User Folder is still shown in the tree, folders with donav='false' properties are still shown... Everything's go wrong ;( Andreas Kostyrka wrote:
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Ok, I've downloaded the Navigation product but the doc is very *light*
How do you use it ? (key ? value ?) Well, you put a donav property on all folders you want it show. (donav="yes") Then, you use this expression instead of objectValues(): navigate_filter('donav',_.None,'Folder') (This finds all Folders that do have a donav attribute) navigate_filter('donav','yes','Folder') (This finds all Folders with donav=='yes') navigate_filter('donav',_.None,_.None) (This finds all objects that do have an donav attribute.)
Also note, that navigate_filter by default surpresses Acquisition, meaning that you don't get all subfolders displayed by default.
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
_______________________________________________ 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
On Mon, 23 Aug 1999, Arnaud Lecat wrote: Well, for an live example, I'll paste here the navigation sidebar method from www.mtg.co.at: <!--#with "PARENTS[-1]"--> <A HREF="/"><!--#var logo_or_title--></A><BR> <BR> <!--#/with--> <!--#tree expr="PARENTS[-1]" branches_expr="navigate_filter('donav','yes','Folder')" skip_unauthorized=1 sort=title_or_id --> <A HREF="<!--#var absolute_url-->"><!--#var title_or_id--></A> <!--#/tree-->
I still don't manage to do what I want to do ;( User Folder is still shown in the tree, folders with donav='false' properties are still shown... Everything's go Well, if you used navigate_filter('donav',_.None)
then folders with donav='false' would be matched: _.None means any value. Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Hmmmm It's really boring... By the hell, where are the docs ?!?! I even didn't knwo there were a skip_unauthorized property :( Where are hidden all these small properties ??? Andreas Kostyrka wrote:
On Mon, 23 Aug 1999, Arnaud Lecat wrote:
Well, for an live example, I'll paste here the navigation sidebar method from www.mtg.co.at: <!--#with "PARENTS[-1]"--> <A HREF="/"><!--#var logo_or_title--></A><BR> <BR> <!--#/with--> <!--#tree expr="PARENTS[-1]" branches_expr="navigate_filter('donav','yes','Folder')" skip_unauthorized=1 sort=title_or_id --> <A HREF="<!--#var absolute_url-->"><!--#var title_or_id--></A> <!--#/tree-->
I still don't manage to do what I want to do ;( User Folder is still shown in the tree, folders with donav='false' properties are still shown... Everything's go Well, if you used navigate_filter('donav',_.None)
then folders with donav='false' would be matched: _.None means any value.
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
_______________________________________________ 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
On Tue, 24 Aug 1999, Arnaud Lecat wrote:
Hmmmm
It's really boring... By the hell, where are the docs ?!?! I even didn't knwo there were a skip_unauthorized property :( Where are hidden all these small properties ??? Well, this is, if I remember correctly, in the DTML users guide, in the tree tag appendix. ;)
Alternativly, this is documented in the source code. :) Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
On Tue, 24 Aug 1999, Andreas Kostyrka wrote:
It's really boring... By the hell, where are the docs ?!?! I even didn't knwo there were a skip_unauthorized property :( Where are hidden all these small properties ??? Well, this is, if I remember correctly, in the DTML users guide, in the tree tag appendix. ;)
Alternativly, this is documented in the source code. :)
I really think it is other way round - source code is main reference point and docs are "alternate". Finally, it is source code that makes programs run, no? :)))
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Oleg. ---- Oleg Broytmann Netskate/Inter.Net.Ru phd@emerald.netskate.ru Programmers don't die, they just GOSUB without RETURN.
At 09:56 24/08/99 , Arnaud Lecat wrote:
Hmmmm
It's really boring... By the hell, where are the docs ?!?! I even didn't knwo there were a skip_unauthorized property :( Where are hidden all these small properties ???
Andreas Kostyrka wrote:
http://www.zope.org/Documentation/Guides and the tree tag attributes: http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.13.html#pgfId-1 042725 -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (4)
-
Andreas Kostyrka -
Arnaud Lecat -
Martijn Pieters -
Oleg Broytmann