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/portlets.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,20 @@ As a user, you can add a portlet to a web page in a Plone site by following thes
30
30
1. Navigate to the web page where you want to add the portlet.
31
31
32
32
2. Click on the {guilabel}`Manage portlets` link in the toolbar of the page and select the region on the page to modify.
33
-
This will open the "Manage portlets" screen.
33
+
This will open the screen to manage portlets for the current item.
34
+
35
+
Note that you must have the appropriate permissions to add portlets to a web page.
36
+
If you do not see the {guilabel}`Manage portlets` link, you may need to contact the site administrator to request access.
34
37
35
38
3. In the {menuselection}`Add portlets` menu, select the portlet that you want to add, and click the {guilabel}`Add` button.
36
39
This will open an edit form, now fill in the form.
37
40
38
-
4. Click the "Save" button to save your changes and add the portlet to the web page.
39
-
This adds the portlet to the list of "Portlets assigned here" on the screen.
40
-
Note that you must have the appropriate permissions to add portlets to a web page.
41
-
If you do not see the "Manage portlets" link, you may need to contact the site administrator to request access.
41
+
4. Click the {guilabel}`Save` button to save your changes and add the portlet to the web page.
42
+
This adds the portlet to the list of {guilabel}`Portlets assigned here` on the screen.
42
43
43
-
5. Use the "Up" and "Down" arrows in the "Assigned portlets" section to change the order in which the portlets will be displayed on the web page.
44
-
The "Hide" button will deactivate the portlet.
45
-
The "X" button deletes the portlet.
44
+
5. Use the {guilabel}`Up` and {guilabel}`Down` arrows in the {guilabel}`Assigned portlets` section to change the order in which the portlets will be displayed on the web page.
45
+
The {guilabel}`Hide` button will deactivate the portlet.
46
+
The {guilabel}`X` button deletes the portlet.
46
47
47
48
48
49
## Writing a custom Portlet
@@ -169,13 +170,26 @@ Here is an example ``configure.zcml`` file that registers the MyPortlet class de
169
170
170
171
This file registers a portlet with the following properties:
171
172
172
-
-*Title:* Example" Portlet"
173
-
-*Description:* "A portlet that displays a greeting message"
174
-
-*Add form:* "example.portlet.add"
175
-
-*Edit form:* "example.portlet.edit"
176
-
-*Assignment:* "example.portlet.Assignment"
177
-
-*Renderer:* "example.portlet.Renderer"
178
-
-*Schema:* "example.portlet.IExamplePortlet"
173
+
Title
174
+
: `Example" Portlet`
175
+
176
+
Description
177
+
: `A portlet that displays a greeting message`
178
+
179
+
Add form
180
+
: `example.portlet.add`
181
+
182
+
Edit form
183
+
: `example.portlet.edit`
184
+
185
+
Assignment
186
+
: `example.portlet.Assignment`
187
+
188
+
Renderer
189
+
: `example.portlet.Renderer`
190
+
191
+
Schema
192
+
: `example.portlet.IExamplePortlet`
179
193
180
194
These values should match the corresponding classes and interfaces defined in the example code from the previous example.
0 commit comments