Hi; Is there a way to use traverse_subpath in a page template called index_html without having index_html in the url? so, for instance, if I have a template called aaa which just prints the traverse subpath, I can call it with: http://example.com/aaa/bbb/ccc and get: ['bbb', 'ccc'] but if it is called index_html I would have to use: http://example.com/index_html/bbb/ccc to get the same thing. But I was hoping to call it as: http://example.com/bbb/ccc Thanks for your time. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
Lee Harr wrote:
Hi;
Is there a way to use traverse_subpath in a page template called index_html without having index_html in the url?
so, for instance, if I have a template called aaa which just prints the traverse subpath, I can call it with:
http://example.com/aaa/bbb/ccc
and get: ['bbb', 'ccc']
but if it is called index_html I would have to use:
That's odd, I'd say your first example looks like a bug. Submit it at http://collector.zope.org or ask on zpt@zope.org and maybe Evan can shed some light... cheers, Chris
Lee Harr wrote at 2003-9-4 01:12 +0000:
Is there a way to use traverse_subpath in a page template called index_html without having index_html in the url?
No, at least not an easy one. You may try a (SiteAccess) AccessRule and let it insert a missing "index_html". However, it will not be trivial to realize it in a way that everything works as it should be. Dieter
participants (3)
-
Chris Withers -
Dieter Maurer -
Lee Harr