RE: [Zope] standard_html_header difficulties - a dead-end ?
-----Original Message----- From: Darcy Clark [mailto:darcyc@engin.umich.edu] Sent: Monday, December 06, 1999 3:04 PM To: Janko Hauser; zope@zope.org Subject: Re: [Zope] standard_html_header difficulties - a dead-end ?
Janko,
thanks for explaining this....it works for me also. Although I must admit that I am still suprised that I cannot get this to work somehow if index_html is a method. The reason I am trying to use methods is that in my standard_html_header I am also using the <!--#tree--> tag - this tag only seems to work properly if index_html is a method. I guess I still don't appreciate the finer points of methods/documents and acquisition.
In a document you could say: <dtml-with "PARENTS[1]"> <dtml-tree ...> </dtml-with> Note that PARENTS is built from the *traversal* path, not from the *containment* path of the object. In other words, B may be contained in the folder A, but it may have been *acquired* from C if it was accessed like /A/C/B. In this case, B's 'PARENTS[1]' is C, not A. -Michel
Michel Pelletier wrote:
-----Original Message----- From: Darcy Clark [mailto:darcyc@engin.umich.edu] Sent: Monday, December 06, 1999 3:04 PM To: Janko Hauser; zope@zope.org Subject: Re: [Zope] standard_html_header difficulties - a dead-end ?
Janko,
thanks for explaining this....it works for me also. Although I must admit that I am still suprised that I cannot get this to work somehow if index_html is a method. The reason I am trying to use methods is that in my standard_html_header I am also using the <!--#tree--> tag - this tag only seems to work properly if index_html is a method. I guess I still don't appreciate the finer points of methods/documents and acquisition.
In a document you could say:
<dtml-with "PARENTS[1]"> <dtml-tree ...> </dtml-with>
for some reason the above didn't work for me. But the following code (in my standard_html_header) works when called from either methods or documents with <!--#var standard_html_header--> : <dtml-tree expr="PARENTS[0]" branches_expr="objectValues(['DTML Method'])" sort=id> <a href="<dtml-var tree-item-url>"><dtml-var title_or_id></a> </dtml-tree> thanks to everyone who helped me with my "standard_html_header difficulties" - I think this problem has taught me a little more about the way Zope operates - still have a long way to go though :) darcy
Note that PARENTS is built from the *traversal* path, not from the *containment* path of the object. In other words, B may be contained in the folder A, but it may have been *acquired* from C if it was accessed like /A/C/B. In this case, B's 'PARENTS[1]' is C, not A.
-Michel
-- --------------------------------------------------- Ph: (734) 764 3377 Email: darcyc@engin.umich.edu URL: http://www-personal.engin.umich.edu/~darcyc/ --------------------------------------------------- 'If you're not part of the solution, you're part of the precipitate' ..... Steven Wright
participants (2)
-
Darcy Clark -
Michel Pelletier