You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/classic-ui/layers.md
+1-47Lines changed: 1 addition & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,54 +58,8 @@ Then views and viewlets from your product can be enabled on the site instance us
58
58
### Unconditional overrides
59
59
60
60
If you want to override a view or a viewlet unconditionally for all sites without the add-on product installer support, you need to use `overrides.zcml`.
61
-
You can override classes and templates in this file.
61
+
You can override classes and templates in this file. To do this, you put the ZCML-registration in a files called overrides.zcml in the package root (next to the top most configure.zcml).
If you want to override a viewlet or view of a specific add-on product, you need to use enheritance the Layer interface of the add-on product into your own Layer interface.
100
-
For example, if you want to override the `sidebar` viewlet of the `collective.sidebar` add-on product, you need to create a new Layer interface and inherit from the `collective.sidebar` Layer interface.
101
-
102
-
```python
103
-
from collective.sidebar.interfaces import ICollectiveSidebarLayer
104
-
105
-
classIYourAppLayer(ICollectiveSidebarLayer):
106
-
"""Marker interface that defines a browser layer."""
0 commit comments