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
@@ -18,7 +18,7 @@ Layers are useful in the following scenarios.
18
18
- Mobile browsing code is only active when the site is being browsed on a mobile phone.
19
19
20
20
Layers are marker interfaces applied to the {term}`HTTPRequest` object.
21
-
They are usually used in conjunction with {term}`ZCML` directives to dynamically activate various parts of the configuration, such as theme files or add-on product functionality.
21
+
They are usually used in conjunction with Zope Configuration Mark-up Language ({term}`ZCML`) directives to dynamically activate various parts of the configuration, such as theme files or add-on product functionality.
22
22
23
23
Layers ensure that only one add-on product can override the specific Plone instance functionality in your site at a time, while still allowing you to have possibly conflicting add-on products in your buildout and ZCML.
24
24
Multiple Plone site instances can share the same ZCML and code files.
@@ -61,13 +61,17 @@ If you want to override a view or a viewlet unconditionally for all sites withou
61
61
62
62
```{todo}
63
63
Explain how to use an `overrides.zcml`.
64
+
65
+
See https://github.com/plone/documentation/issues/1426
64
66
```
65
67
66
68
67
69
(classic-ui-creating-a-layer-label)=
68
70
69
71
## Creating a layer
70
72
73
+
Developers can create layers for themes, extensions, behaviors, and other functions.
74
+
71
75
72
76
(classic-ui-theme-layer-label)=
73
77
@@ -204,9 +208,9 @@ from zope.publisher.interfaces.browser import IBrowserRequest
204
208
205
209
class INoHeaderLayer(IBrowserRequest):
206
210
""" When applied to HTTP request object, header animations
207
-
or images are not rendered on this.
211
+
or images are not rendered on this layer.
208
212
209
-
If this layer is on request, do not render header images.
213
+
If this layer is on a request, do not render header images.
210
214
This allows uncluttered editing of header animations and images.
211
215
"""
212
216
@@ -245,6 +249,8 @@ class EditHeaderAnimationsView(FormWrapper):
245
249
246
250
## Checking active layers
247
251
252
+
This section describes a few strategies for developers to check active layers according to their type.
0 commit comments