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
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
myst:
3
3
html_meta:
4
4
"description": "Basic information about portlets in classic UI"
5
-
"property=og:description": ""
6
-
"property=og:title": ""
7
-
"keywords": ""
5
+
"property=og:description": "Basic information about portlets in classic UI"
6
+
"property=og:title": "Portlets"
7
+
"keywords": "portlets"
8
8
---
9
9
10
10
(classic-ui-portlets-label)=
@@ -15,6 +15,9 @@ myst:
15
15
16
16
In Plone, a portlet is a small, modular piece of content that can be displayed in a specific area of a web page. Portlets are typically used to display information that is relevant to the current context, such as the latest news, upcoming events, or a list of related documents.
17
17
18
+
The context is either the current part of the content hierarchy, the current user's group memberships, or the current content type.
19
+
Thus, if a portlet was set on a folder, all contained items do display the portlet unless it is explicitly blocked.
20
+
18
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.
19
22
20
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.
@@ -25,7 +28,7 @@ As a user, you can add a portlet to a web page in a Plone site by following thes
25
28
26
29
1. Navigate to the web page where you want to add the portlet.
27
30
28
-
2. Click on the "Manage portlets" link in the toolbar of the page and select the region on the page to mofify.
31
+
2. Click on the "Manage portlets" link in the toolbar of the page and select the region on the page to modify.
29
32
This will open the "Manage portlets" screen.
30
33
31
34
3. In the "Add portlets" menu, select the portlet that you want to add and click the "Add" button.
@@ -133,11 +136,12 @@ Here is the example for a simple page template ``my_portlet.pt``:
133
136
</html>
134
137
```
135
138
136
-
This portlet class defines a portlet with the title "My Portlet" and the name "my-portlet". When the portlet is rendered, it will use the template file `my_portlet.pt` to generate its HTML output that displays a greeting message..
139
+
This portlet class defines a portlet with the title "My Portlet" and the name "my-portlet". When the portlet is rendered, it will use the template file `my_portlet.pt` to generate its HTML output that displays a greeting message.
137
140
138
-
The message is set when the portlet is added, and can be edited in the portlet's edit form.
141
+
The message is set when the portlet is added and can be edited in the portlet's edit form.
139
142
140
-
To register this portlet with Plone, you will need to create a configure.zcml file that tells Plone about the portlet, and - after a restart - you can add it to a Plone page using the "manage portlets" screen. Here is an example configure.zcml file that registers the MyPortlet class defined above:
143
+
To register this portlet with Plone, you will need to create a ``configure.zcml`` file that tells Plone about the portlet, and - after a restart - you can add it to a Plone page using the "manage portlets" screen.
144
+
Here is an example ``configure.zcml`` file that registers the MyPortlet class defined above:
0 commit comments