Skip to content

Commit 7f7ba8c

Browse files
committed
Tidy up add-ons.md
1 parent 8facc74 commit 7f7ba8c

File tree

1 file changed

+51
-29
lines changed

1 file changed

+51
-29
lines changed

docs/admin-guide/add-ons.md

Lines changed: 51 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
11
---
22
myst:
33
html_meta:
4-
"description": "Install Plone Add-ons"
5-
"property=og:description": "Install Plone Add-ons"
6-
"property=og:title": "Install Plone Add-ons"
7-
"keywords": "Plone 6, addon, add-on, package, plugin, extension, install"
4+
"description": "Install Plone add-ons"
5+
"property=og:description": "Install Plone add-ons"
6+
"property=og:title": "Install Plone add-ons"
7+
"keywords": "Plone 6, add-on, package, plugin, extension, install"
88
---
99

10-
(install-plone-addons-label)=
10+
(install-plone-add-ons-label)=
1111

12-
# Install Plone Add-ons
12+
# Install Plone add-ons
1313

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.
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.
1515

1616
```{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`.
1820
```
1921

20-
## with Cookieplone
2122

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+
2327

2428
### Install an add-on
2529

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`.
2731
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
2832

2933
```
3034
collective.easyform==4.2.1
3135
```
3236

3337
```{tip}
34-
Including the add-on version ensures 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.
3539
```
3640

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.
3842

3943
```yaml
4044
default_context:
@@ -43,19 +47,23 @@ default_context:
4347
4448
Stop the backend with {kbd}`ctrl-c`.
4549

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.
4751

4852
```shell
4953
make backend-build
5054
```
5155

5256
```{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.
5458
```
5559

5660
Now restart the backend.
5761

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.
5967

6068
Then click the {guilabel}`Install` button next to your add-on to complete installation of the add-on.
6169

@@ -68,25 +76,26 @@ At the bottom of the page, you should see the heading {guilabel}`Add-on Configur
6876

6977
An add-on can be installed from a source control system such as GitHub.
7078

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`.
7280
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
7381

7482
```
7583
collective.easyform
7684
```
7785

7886
```{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.
8089
```
8190

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.
8392

8493
```yaml
8594
default_context:
8695
zcml_package_includes: project_title, collective.easyform
8796
```
8897
89-
Finally, add the package's source to {file}`mx.ini`:
98+
Finally, add the package's source to the file {file}`mx.ini`.
9099

91100
```cfg
92101
[collective.easyform]
@@ -102,19 +111,23 @@ See the [documentation of `mxdev` in its README.md](https://github.com/mxstack/m
102111

103112
Stop the backend with {kbd}`ctrl-c`.
104113

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.
106115

107116
```shell
108117
make backend-build
109118
```
110119

111120
```{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.
113122
```
114123

115124
Now restart the backend.
116125

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.
118131
An upgrade step might need to be performed in the Plone control panel.
119132
Follow the upgrade information, if present.
120133
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.
126139

127140
### Install an add-on
128141

129-
Update {file}`buildout.cfg`.
142+
Update the file {file}`buildout.cfg`.
130143
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
131144

132145
```cfg
@@ -150,22 +163,27 @@ collective.easyform = 4.2.1
150163
```
151164

152165
```{tip}
153-
Including the add-on version ensures 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.
154167
```
155168

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.
157170

158171
```shell
159172
bin/buildout
160173
```
161174

162175
Then restart your instance.
163176

177+
```{seealso}
178+
{doc}`run-plone`
179+
```
180+
181+
164182
### Install an add-on from source
165183

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.
167185

168-
Update {file}`buildout.cfg`.
186+
Update the file {file}`buildout.cfg`.
169187
This example uses [`collective.easyform`](https://pypi.org/project/collective.easyform/).
170188

171189
```cfg
@@ -191,14 +209,18 @@ eggs =
191209
collective.easyform = git https://github.com/collective/collective.easyform.git
192210
```
193211

194-
To actually download and install the new add-on, run:
212+
To actually download and install the new add-on, run the following command.
195213

196214
```shell
197215
bin/buildout
198216
```
199217

200218
Then restart your instance.
201219

220+
```{seealso}
221+
{doc}`run-plone`
222+
```
223+
202224
```{seealso}
203225
This approach uses the [`mr.developer`](https://pypi.org/project/mr.developer/) Buildout extension.
204226
```

0 commit comments

Comments
 (0)