[z3-five] Overriding main_template in zcml

yary not.com at gmail.com
Thu Oct 5 20:59:57 CEST 2006


> ... I can't promise you it works, though, main_template it
> supposed to be overridden in a skin.

Will have to go back to skins... after a couple hours of playing
here's my state:

created a QSite (subclass of CMFSite with different name) instance
named "Site", & change the name of the template. I try view it with
"http://localhost:8080/SecondSite/view" with various combinations of
zcml. My latest:

    <five:traversable class="Products.Q.portal.QSite" />
    <five:traversable class="Products.CMFDefault.Portal.CMFSite" />
    <five:pagesFromDirectory directory="."
        module="Products.Q"
        permission="zope2.View"
        for="Products.CMFCore.interfaces._content.ISiteRoot"/>

    <browser:page template="main_template.pt"
                  name="view"
                  permission="zope2.View"
                  for="*"
    />

All I see is the original template, not the contents of main_template.pt


More information about the z3-five mailing list