@@ -24,10 +24,6 @@ Placeholders
24
24
placeholder
25
25
-----------
26
26
27
- .. versionchanged :: 2.1
28
-
29
- The placeholder name became case sensitive.
30
-
31
27
The ``placeholder `` template tag defines a placeholder on a page. All
32
28
placeholders in a template will be auto-detected and can be filled with
33
29
plugins when editing a page that is using said template. When rendering, the
@@ -37,6 +33,10 @@ Example::
37
33
38
34
{% placeholder "content" %}
39
35
36
+ .. image :: /reference/images/placeholder.png
37
+ :alt: a placeholder named 'content'
38
+ :align: center
39
+
40
40
If you want additional content to be displayed in case the placeholder is
41
41
empty, use the ``or `` argument and an additional ``{% endplaceholder %} ``
42
42
closing tag. Everything between ``{% placeholder "..." or %} `` and ``{%
@@ -81,8 +81,6 @@ context variables and change some other placeholder behaviour.
81
81
static_placeholder
82
82
------------------
83
83
84
- .. versionadded :: 3.0
85
-
86
84
The ``{% static_placeholder %} `` template tag can be used anywhere in a template element after
87
85
the ``{% cms_toolbar %} `` tag. A static placeholder instance is not bound to any particular page
88
86
or model - in other words, everywhere it appears, a static placeholder will hold exactly the same
@@ -101,10 +99,14 @@ Example::
101
99
102
100
{% static_placeholder "footer" %}
103
101
102
+ .. image :: /reference/images/static-placeholder.png
103
+ :alt: a static placeholder
104
+ :align: center
104
105
105
- .. warning ::
106
+ .. note ::
106
107
107
- Static placeholders are not included in the undo/redo and page history pages
108
+ To reduce clutter in the interface, the plugins in static placeholders are hidden by default.
109
+ Click or tap on the name of the static placeholder to reveal/hide them.
108
110
109
111
If you want additional content to be displayed in case the static placeholder is
110
112
empty, use the ``or `` argument and an additional ``{% endstatic_placeholder %} ``
0 commit comments