Skip to content

Commit 2ee2c0c

Browse files
committed
be nore specific
1 parent 7e7b00c commit 2ee2c0c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/classic-ui/portlets.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ In Plone, a portlet is a small, modular piece of content that can be displayed i
1818
The context is either the current part of the content hierarchy, the current user's group memberships, or the current content type.
1919
Thus, if a portlet was set on a folder, all contained items do display the portlet unless it is explicitly blocked.
2020

21-
Portlets are highly customizable and can be used to display a wide variety of information. They can be added, removed, or rearranged on a web page by users with the appropriate permissions, allowing for a high degree of flexibility in the layout and content of a Plone site.
21+
Portlets are highly customizable and can be used to display a wide variety of information.
22+
They can be added, removed, or rearranged on a web page by users with the appropriate permissions, allowing for a high degree of flexibility in the layout and content of a Plone site.
2223

23-
Plone comes with a number of built-in portlets, such as the news portlet, the events portlet, and the login portlet. In addition, developers can create custom portlets to display specific types of information or to provide specific functionality.
24+
Plone comes with several built-in portlets, such as the news portlet, the events portlet, and the login portlet.
25+
In addition, developers can create custom portlets to display specific types of information or to provide specific functionality.
2426

2527
## Adding a portlet to a page
2628

@@ -32,17 +34,21 @@ As a user, you can add a portlet to a web page in a Plone site by following thes
3234
This will open the "Manage portlets" screen.
3335

3436
3. In the "Add portlets" menu, select the portlet that you want to add and click the "Add" button.
35-
This will add the portlet to the list of "Portlets assigned here" on the screen.
37+
This will open an edit form, now fill in the form.
3638

3739
4. Click the "Save" button to save your changes and add the portlet to the web page.
38-
Note that you must have the appropriate permissions in order to add portlets to a web page. If you do not see the "Manage portlets" link, you may need to contact the site administrator to request access.
40+
This adds the portlet to the list of "Portlets assigned here" on the screen.
41+
Note that you must have the appropriate permissions to add portlets to a web page.
42+
If you do not see the "Manage portlets" link, you may need to contact the site administrator to request access.
3943

4044
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.
45+
The "Hide" button will deactivate the portlet.
46+
The "X" button deletes the portlet.
4147

4248

4349
## Writing a custom Portlet
4450

45-
To create a portlet, you will need to write a Python class that defines the portlet and its behavior.
51+
To create a portlet, you will need to write Python classes that define the portlet and its behavior.
4652
This class should subclass the Portlet class from the `plone.portlets` package.
4753

4854
Here is an example of a very simple portlet class ``my_portlet.py``:
@@ -176,4 +182,4 @@ These values should match the corresponding classes and interfaces defined in th
176182

177183
This file registers the MyPortlet class as a portlet with Plone. It also specifies the portlet's name, title, description, and category.
178184

179-
To get more example you can also look at the source code of the Plone core package `plone.app.porlets`, or of other Plone add-ons that include portlets for examples of how to write and register portlets.
185+
To get more examples you can also look at the source code of the Plone core package `plone.app.porlets`, or of other Plone add-ons that include portlets for examples of how to write and register portlets.

0 commit comments

Comments
 (0)