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
This chapter explains how to install {term}`add-ons <Add-on>` as Python packages to extend the functionality of the Plone backend or Classic UI.
14
+
This chapter explains how to install {term}`add-ons <add-on>` as Python packages to extend the functionality of the Plone backend or Classic UI.
15
15
16
16
```{note}
17
-
The Volto frontend has its own system of add-ons using Node.js packages. See {doc}`/volto/addons/index`.
17
+
The Volto frontend has its own system of add-ons using Node.js packages.
18
+
% TODO: update the following link after https://github.com/plone/volto/pull/6397 is merged to point to `/development/add-ons/index`.
19
+
See {doc}`/volto/addons/index`.
18
20
```
19
21
20
-
## with Cookieplone
21
22
22
-
Use the following instructions if you installed Plone with Cookieplone or `cookiecutter-plone-starter`.
23
+
## Cookieplone
24
+
25
+
Use the following instructions if you installed Plone with either Cookieplone or `cookiecutter-plone-starter`.
26
+
23
27
24
28
### Install an add-on
25
29
26
-
Add a line with the name of your add-on in `backend/requirements.txt`.
30
+
Add a line with the name of your add-on in the file {file}`backend/requirements.txt`.
27
31
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
28
32
29
33
```
30
34
collective.easyform==4.2.1
31
35
```
32
36
33
37
```{tip}
34
-
Including the add-on versionensures that it won't accidentally get upgraded in the future.
38
+
Including the add-on version, or "pinning a version", ensures that it won't unintentionally get upgraded in the future.
35
39
```
36
40
37
-
Also add the add-on to `zcml_package_includes` in {file}`backend/instance.yaml` to make sure its configuration will be loaded:
41
+
Also add the add-on to `zcml_package_includes` in the file {file}`backend/instance.yaml` to make sure its configuration will be loaded.
38
42
39
43
```yaml
40
44
default_context:
@@ -43,19 +47,23 @@ default_context:
43
47
44
48
Stop the backend with {kbd}`ctrl-c`.
45
49
46
-
To actually download and install the new add-on, run:
50
+
To actually download and install the new add-on, run the following command.
47
51
48
52
```shell
49
53
make backend-build
50
54
```
51
55
52
56
```{note}
53
-
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.`
57
+
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.
54
58
```
55
59
56
60
Now restart the backend.
57
61
58
-
In your web browser, and assuming you are currently logged in as `admin`, visit the URL http://localhost:8080/Plone/prefs_install_products_form.
62
+
```{seealso}
63
+
{doc}`run-plone`
64
+
```
65
+
66
+
In your web browser, and assuming you are currently logged in as an administrator, visit the URL http://localhost:8080/Plone/prefs_install_products_form.
59
67
60
68
Then click the {guilabel}`Install` button next to your add-on to complete installation of the add-on.
61
69
@@ -68,25 +76,26 @@ At the bottom of the page, you should see the heading {guilabel}`Add-on Configur
68
76
69
77
An add-on can be installed from a source control system such as GitHub.
70
78
71
-
Add a line with the name of your add-on in `backend/requirements.txt`.
79
+
Add a line with the name of your add-on in the file {file}`backend/requirements.txt`.
72
80
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
73
81
74
82
```
75
83
collective.easyform
76
84
```
77
85
78
86
```{note}
79
-
When installing an add-on from source, it's best to not pin a version, to make sure we use the version that's currently available in the source control system.
87
+
When installing an add-on from source, it's best not to pin a version.
88
+
This way you always get the version that's currently available in the source control system.
80
89
```
81
90
82
-
Also add the add-on to `zcml_package_includes` in {file}`backend/instance.yaml`to make sure its configuration will be loaded:
91
+
Next add the add-on to `zcml_package_includes` in the file {file}`backend/instance.yaml`so that its configuration will load.
Finally, add the package's source to {file}`mx.ini`:
98
+
Finally, add the package's source to the file {file}`mx.ini`.
90
99
91
100
```cfg
92
101
[collective.easyform]
@@ -102,19 +111,23 @@ See the [documentation of `mxdev` in its README.md](https://github.com/mxstack/m
102
111
103
112
Stop the backend with {kbd}`ctrl-c`.
104
113
105
-
To actually download and install the new add-on, run:
114
+
To actually download and install the new add-on, run the following command.
106
115
107
116
```shell
108
117
make backend-build
109
118
```
110
119
111
120
```{note}
112
-
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.`
121
+
If you installed Plone using `cookiecutter-plone-starter`, run `make build-backend` instead.
113
122
```
114
123
115
124
Now restart the backend.
116
125
117
-
In your web browser, and assuming you are currently logged in as `admin`, visit the URL http://localhost:8080/Plone/prefs_install_products_form.
126
+
```{seealso}
127
+
{doc}`run-plone`
128
+
```
129
+
130
+
In your web browser, and assuming you are currently logged in as an administrator, visit the URL http://localhost:8080/Plone/prefs_install_products_form.
118
131
An upgrade step might need to be performed in the Plone control panel.
119
132
Follow the upgrade information, if present.
120
133
Else click the {guilabel}`Install` button to complete installation of the add-on.
@@ -126,7 +139,7 @@ Use the following instructions if you installed Plone with Buildout.
126
139
127
140
### Install an add-on
128
141
129
-
Update {file}`buildout.cfg`.
142
+
Update the file {file}`buildout.cfg`.
130
143
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
131
144
132
145
```cfg
@@ -150,22 +163,27 @@ collective.easyform = 4.2.1
150
163
```
151
164
152
165
```{tip}
153
-
Including the add-on versionensures that it won't accidentally get upgraded in the future.
166
+
Including the add-on version, or "pinning a version", ensures that it won't unintentionally get upgraded in the future.
154
167
```
155
168
156
-
To actually download and install the new add-on, run:
169
+
To actually download and install the new add-on, run the following command.
157
170
158
171
```shell
159
172
bin/buildout
160
173
```
161
174
162
175
Then restart your instance.
163
176
177
+
```{seealso}
178
+
{doc}`run-plone`
179
+
```
180
+
181
+
164
182
### Install an add-on from source
165
183
166
-
An add-on can be installed from a source control system such as GitHub.
184
+
You can install an add-on from a source control system such as GitHub.
167
185
168
-
Update {file}`buildout.cfg`.
186
+
Update the file {file}`buildout.cfg`.
169
187
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
0 commit comments