I’m trying to override a view provided by a CMF skin layer with a <browser:page ... having the same name= attribute. Is this possible in Plone, or can browser views only override other browser views?
I’m trying to override a view provided by a CMF skin layer with a
Share
(This is a bit late, but what the hell)
CMF Skin layers override browser views. That is why you have to put
@@in front of a browserview’s name in an URL, i.e to disambiguate it and make sure that the browserview is called instead of the CMF skin layer template.So in short, if you put
@@in front, the browserview will override, otherwise not.i.e:
overrides:
To overcome this, override the template in your CMF skin layer and
tal:definetheViewvariable to point to your@@myview. You can then still access the BrowserViews methods from the CMF skin layer template.