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/viewlets.md
+51-10Lines changed: 51 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,26 +27,58 @@ Similar to Views, Viewlets are usually a combination of:
27
27
.. graphviz::
28
28
:align: center
29
29
30
-
digraph viewstructure {
30
+
digraph viewletstructure {
31
31
{
32
32
node [margin=5,shape=box]
33
33
}
34
34
ZCML -> {Python, Template};
35
35
}
36
36
```
37
37
38
+
38
39
Each viewlet is associated with a {ref}`classic-ui-viewlets-viewletmanager-label`.
39
40
40
-
Common viewlet managers are:
41
+
Common viewlet managers and it's viewlets are:
42
+
43
+
-**plone.abovecontent**
44
+
45
+
- plone.path_bar
46
+
- plone.lockinfo
47
+
48
+
-**plone.globalstatusmessage**
49
+
50
+
- plone.globalstatusmessage
51
+
52
+
-**plone.abovecontenttitle**
53
+
54
+
- plone.socialtags
55
+
- contentleadimage
56
+
57
+
-**plone.belowcontenttitle**
58
+
59
+
- plone.documentbyline
60
+
61
+
-**plone.abovecontentbody**
62
+
63
+
- plone.tableofcontents
64
+
65
+
-**plone.belowcontentbody**
66
+
67
+
- plone.contributors
68
+
- plone.rights
69
+
- plone.keywords
70
+
- plone.relateditems
71
+
72
+
-**plone.belowcontent**
73
+
74
+
- plone.documentactions
75
+
- plone.nextprevious
76
+
- plone.comments
77
+
78
+
-**plone.toolbar**
79
+
80
+
- plone.contentviews
41
81
42
-
- plone.abovecontent
43
-
- plone.globalstatusmessage
44
-
- plone.abovecontenttitle
45
-
- plone.belowcontenttitle
46
-
- plone.abovecontentbody
47
-
- plone.belowcontentbody
48
-
- plone.belowcontent
49
-
- plone.toolbar
50
82
51
83
To get an overview of all `viewlet manager` and Viewlets in the current context, you can use the `@@manage-viewlets` view.
52
84
@@ -89,6 +121,14 @@ To set the order of a viewlet inside it's viewlet manager, use the following `Ge
89
121
</order>
90
122
```
91
123
124
+
```{note}
125
+
You cannot move viewlets between viewlet managers.
126
+
Hide the concerning viewlets in one manager using /@@manage-viewlets and viewlets.xml
127
+
export, then re-register the same viewlet to a new manager.
128
+
You also have to change the {ref}`classic-ui-viewlets-viewletmanager-label` class in the ``ZCML`` registration of the viewlet.
129
+
See {ref}`classic-ui-viewlets-registering-viewlet-zcml-label`.
130
+
```
131
+
92
132
### Hiding viewlets
93
133
94
134
Hiding a viewlet is also done from the `viewlets.xml` with the `<hidden />` node which is at same level as `<order />`, and is done per skin selection.
@@ -246,6 +286,7 @@ Then a sample page template (like.pt). You can use TAL template variable *view*
0 commit comments