23 Sep
2002
23 Sep
'02
8:07 p.m.
Bo M. Maryniuck wrote:
Is anybody know how to subj a Product, which is called and returns some HTML or just checks some data?
I think you're misunderstanding the purpose of the BeforeTraverse hook. It triggers when the URL publishing process traverses a hooked container, usually in order to modify traversal or set up environment information. Did you really intend to return HTML whenever the Folder *containing* your Product's instance is traversed? If you just want to control what's returned when the instance itself is published (/spam/test in your example) then the index_html method should do it. Cheers, Evan @ 4-am