Sorry, my __bobo_traverse__ method is working, the
PARENTS stack is exactly as I would hope, with my module as the parent of the
category, rather than the root.
Here's the whole story:
/
index_html
(dtml method)
index.html
(dtml method)
category (Folder)
foo.html
(dtml method)
blah
(Module)
category
(Folder)
header.html (dtml method)
weather
(Category)
/index_html:
<dtml-var
index.html>
/index.html:
<dtml-var
standard_html_header>
<dtml-if expr="meta_type ==
'Category'"> <!-- true in cases of url like
/blah/weather -->
<dtml-call
expr="REQUEST.set('splevel', category)">
</dtml-if>
<dtml-with splevel
mapping>
<dtml-var
header.html>
</dtml-with>
<dtml-var
standard_html_footer>
Now, what I hope to happen is that the dtml-with
would bind to the /blah/category folder, and therefore be able to find
header.html. However, somehow it's getting the /category folder instead,
which doesn't have header.html.
Anyone understand why this is
happening?
Thanks again,
-Randy
|
- [Zope] siblings of me, rather than of parent Randall Kern
- Re: [Zope] siblings of me, rather than of parent Randall Kern
- Re: [Zope] siblings of me, rather than of parent Randall Kern