Skip to content

Commit 5716b4f

Browse files
authored
Merge branch 'main' into dev/quick-start-guide
2 parents 738d3b2 + 180296a commit 5716b4f

File tree

16 files changed

+252
-9
lines changed

16 files changed

+252
-9
lines changed

docs/.vuepress/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,14 @@ const sidebar = {
321321
'/user-docs/latest/users-roles-permissions/managing-administrators',
322322
'Managing administrator accounts',
323323
],
324+
[
325+
'/user-docs/latest/users-roles-permissions/configuring-end-users-roles',
326+
'Configuring end-users roles',
327+
],
328+
[
329+
'/user-docs/latest/users-roles-permissions/managing-end-users',
330+
'Managing end-users accounts',
331+
],
324332
],
325333
},
326334
{
@@ -340,6 +348,7 @@ const sidebar = {
340348
title: 'General settings',
341349
children: [
342350
['/user-docs/latest/settings/managing-global-settings', 'Managing global settings'],
351+
['/user-docs/latest/settings/configuring-users-permissions-plugin-settings', 'Configuring Users & Permissions plugin settings'],
343352
],
344353
},
345354
],

docs/developer-docs/latest/developer-resources/cli/CLI.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,20 @@ strapi generate:plugin <name>
345345

346346
Please refer to the [local plugins](/developer-docs/latest/development/local-plugins-customization.md) section to know more.
347347

348+
## strapi generate:template
349+
350+
Create a template from the current strapi project
351+
352+
```bash
353+
strapi generate:template <path>
354+
```
355+
356+
- **strapi generate:template &#60;path&#62;**<br/>
357+
Generates a Strapi template at `<path>`
358+
359+
Example: `strapi generate:template ../strapi-template-name` will copy the required files and folders to a `template` directory inside `../strapi-template-name`
360+
361+
348362
## strapi install
349363

350364
Install a plugin in the project.

docs/developer-docs/latest/guides/registering-a-field-in-admin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ At this point we have simply created a new plugin which is mounted in our projec
394394
Since the goal of our plugin is to override the current WYSIWYG we don't want it to be displayed in the administration panel but we need it to register our new **Field**.
395395
In order to do so, we will simply **modify** the front-end entry point of our plugin.
396396

397-
This file is already present. Please replace the content of this file wit the following:
397+
This file is already present. Please replace the content of this file with the following:
398398

399399
**Path —** `./plugins/wysiwyg/admin/src/index.js`
400400

docs/developer-docs/latest/setup-deployment-guides/installation/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Fast-track local install for getting Strapi running on your computer.
1313

1414
#### Node.js
1515

16-
Strapi only requires [Node.js](https://nodejs.org). Strapi only supports **LTS versions** of Node.js, the current recommended version to run Strapi is **Node LTS v14**. Other versions of of Node.js may not be compatible with the latest release of Strapi.
16+
Strapi only requires [Node.js](https://nodejs.org). Strapi only supports **LTS versions** of Node.js, the current recommended version to run Strapi is **Node LTS v14**. Other versions of Node.js may not be compatible with the latest release of Strapi.
1717

1818
This is everything you need to run Strapi on your local environment.
1919

docs/developer-docs/latest/setup-deployment-guides/installation/templates.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,29 @@ To create a Strapi template, you need to publish a public GitHub repository that
7676

7777
First, a template's only concern should be to adapt Strapi to a use case. It should not deal with environment-specific configs, like databases, or upload and email providers. This is to make sure that templates stay maintainable, and to avoid conflicts with other CLI options like `--quickstart`.
7878

79-
Second, a template must follow the following file structure.
79+
Second, a template must follow the file structure detailed below.
80+
81+
You can create this file structure by hand or generate it via the [CLI](/documentation/developer-docs/latest/developer-resources/cli/CLI.html#strapi-generate-template)
82+
83+
:::: tabs
84+
85+
::: tab yarn
86+
87+
```bash
88+
yarn strapi generate:template <path>
89+
```
90+
91+
:::
92+
93+
::: tab npx
94+
95+
```bash
96+
npx strapi generate:template <path>
97+
```
98+
99+
:::
100+
101+
::::
80102

81103
### File structure
82104

@@ -133,9 +155,7 @@ After reading the above rules, follow these steps to create your template:
133155

134156
1. Create a standard Strapi app with `create-strapi-app`, using the `--quickstart` option.
135157
2. Customize your app to match the needs of your use case.
136-
3. Outside of Strapi, create a new directory for your template.
137-
4. Create a `template.json` file in your template directory.
158+
3. Generate your template using the [CLI](/documentation/developer-docs/latest/developer-resources/cli/CLI.html#strapi-generate-template) by running `strapi generate:template <path>`
159+
4. Navigate to this path to see your generated template
138160
5. If you have modified your app's `package.json`, include these changes (and _only_ these changes) in `template.json` in a `package` property. Otherwise, leave it as an empty object.
139-
6. Create a `/template` subdirectory.
140-
7. Think of all the files you have modified in your app, and copy them to the `/template` directory
141-
8. Publish the root template project on GitHub. Make sure that the repository is public, and that the code is on the `master` branch.
161+
6. Publish the root template project on GitHub. Make sure that the repository is public, and that the code is on the `master` branch.
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/user-docs/latest/plugins/strapi-plugins.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,24 @@ The Internationalization plugin impacts several parts of the admin panel. The ta
2929
|------------------|---------------------------------------------------------------------------------------------------------|
3030
| Settings | <ul><li>Addition of a new "Internationalization" setting sub-section, from which to add, edit or delete locales available for the application (see [Configuring Internationalization locales](../settings/managing-global-settings.md#configuring-internationalization-locales)). <br> 👉 Path reminder: *General > Settings > Global Settings > Internationalization* </li> <br> <li>Addition of new permissions for administator roles: access to content-types, as well as possible actions on the content-types, can be defined depending on the locale (see [Configuring role's permissions](/user-docs/latest/users-roles-permissions/configuring-administrator-roles.md#configuring-role-s-permissions)). <br> 👉 Path reminder: *General > Settings > Administration panel*</li></ul> |
3131
| Content-Types Builder | <ul><li>Addition of a new setting at content-type level, to allow or not localisation/translation of the content-type (see [Creating a new content-type](/user-docs/latest/content-types-builder/creating-new-content-type.md#creating-a-new-content-type)).</li> <li>Addition of a new setting at field level, to allow or not localisation/translation of the content-type (see [Configuring fields for content types](/user-docs/latest/content-types-builder/configuring-fields-content-type.md#regular-fields)).</li></ul> |
32-
| Content Manager | <ul><li>Addition of new *Locales* filter in collection types list view, to manage entries per locale (see [Introduction to the Content Manager](/user-docs/latest/content-manager/introduction-to-content-manager.md#collection-types)).</li> <li>Addition of new options in content-types edit view, to translate content and manage it per locale (see [Translating content](/user-docs/latest/content-manager/translating-content.md)).</li></ul> |
32+
| Content Manager | <ul><li>Addition of new *Locales* filter in collection types list view, to manage entries per locale (see [Introduction to the Content Manager](/user-docs/latest/content-manager/introduction-to-content-manager.md#collection-types)).</li> <li>Addition of new options in content-types edit view, to translate content and manage it per locale (see [Translating content](/user-docs/latest/content-manager/translating-content.md)).</li></ul> |
33+
34+
35+
### <img width="28" src="../assets/plugins/icon_up-plugin.png"> Users & Permissions plugin
36+
37+
The Users & Permissions plugin is installed by default on all Strapi applications.
38+
39+
This plugin allows to manage end-users, who consume the content that is created and managed with a Strapi application and displayed on a front-end application (e.g. website, mobile application, connected device etc.). With the Users & Permissions plugin, it is possible to:
40+
41+
- manage end-users accounts, based on a "User" collection type available through the plugin,
42+
- define the available end-users roles and their related permissions,
43+
- manage available providers to enable end-users to login through third-party providers,
44+
- configure available email templates aimed at the end-users (e.g. password reset, email address confirmation).
45+
46+
The Users & Permissions plugin impacts several parts of the admin panel. The table below lists all the additional options and settings that are added to a Strapi application once the plugin has been installed.
47+
48+
| Section impacted | Options and settings |
49+
|------------------|---------------------------------------------------------------------------------------------------------|
50+
| Settings | <ul>Addition of a "Users & Permissions plugin" setting section, which contains 4 sub-sections: Roles (see [Configuring end-users roles](../users-roles-permissions/configuring-end-users-roles.md)), Providers, Email Templates, and Advanced Settings (see [Configuring Users & Permissions plugin](../settings/configuring-users-permissions-plugin-settings.md)). <br> 👉 Path reminder: *General > Settings > Users & Permissions plugin* </ul> |
51+
| Content-Types Builder | <ul>Creation of 3 default collection types: "User", "Role" and "Permission". They respectively allow to manage the end-users, the end-users roles and their permissions. These collection types cannot be deleted and their composing fields cannot be edited, but addition of new fields is possible. Out of the 3, only the "User" collection type is then available via the Content Manager.</ul> |
52+
| Content Manager | <ul>Addition of the default "User" collection type that allows to manage end-user accounts (see [Managing end-users accounts](../users-roles-permissions/managing-end-users.md)). <ul><li>By default, the following fields are available: Username, Email, Password, as well as Confirmed and Blocked as boolean fields.</li> <li>The "User" collection type has a relation established with the "Role" collection type. All end-user accounts must indeed be attributed a role: by default, the end-user is attributed the end-user role set as default, but that role can be changed via the end-users entries directly in the Content Manager.</li></ul> </ul> |
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
title: Users & Permissions plugin settings - Strapi User Guide
3+
description: Instructions to configure the Users & Permissions plugin
4+
---
5+
6+
# Configuring Users & Permissions plugin settings
7+
8+
The Users & Permissions plugin is managed from the *Users & Permissions plugin* settings section, accessible from *General > Settings* in the main navigation of the admin panel. This settings section allows to configure the available providers, email templates and the advanced settings of the plugin. It also allows to define the end-users roles and their related permissions (see [Configuring end-users roles](../users-roles-permissions/configuring-end-users-roles.md)).
9+
10+
## Configuring providers
11+
12+
The Users & Permissions plugin allows to enable and configure providers, for end-users to login via a third-party provider to access the content of a font-end application through the Strapi application API. By default, a list of providers is available including one, "Email", enabled by default for all Strapi applications with the Users & Permissions plugin installed.
13+
14+
![Providers interface](../assets/settings/up_providers.png)
15+
16+
To enable and configure a provider:
17+
18+
1. Go to the *Users & Permissions plugin > Providers* sub-section of the settings interface.
19+
2. Click on the provider to enable and configure.
20+
3. In the provider edition window, click on the **ON** button of the *Enable* option.
21+
4. Fill in the provider's configurations. Each provider has its own specific set of configurations, detailed in our developer documentation (see [Setting up the provider](https://strapi.io/documentation/developer-docs/latest/development/plugins/users-permissions.html#setting-up-the-provider-examples)).
22+
5. Click on the **Save** button.
23+
24+
::: tip NOTE
25+
Other providers that are not proposed by default by Strapi can be added manually through the code of your Strapi application (see [Developer documentation](https://strapi.io/documentation/developer-docs/latest/development/plugins/users-permissions.html#adding-a-new-provider-to-your-project)).
26+
:::
27+
28+
## Configuring email templates
29+
30+
The Users & Permissions plugin uses 2 email templates, "Email address confirmation" and "Reset password", that are sent to end-users:
31+
32+
- if their account must be confirmed to be activated,
33+
- if they need to reset the password of their Strapi account.
34+
35+
![Email templates interface](../assets/settings/up_email-templates.png)
36+
37+
To configure and edit email templates:
38+
39+
1. Go to the *Users & Permissions plugin > Email templates* sub-section of the settings interface.
40+
2. Click on the name of the email template to configure and edit.
41+
3. Configure the email template:
42+
43+
| Setting name | Instructions |
44+
| -------------- | -------------------------------------------------------------------------------------------------|
45+
| Shipper name | Indicate the name of the shipper of the email. |
46+
| Shipper email | Indicate the email address of the shipper of the email. |
47+
| Response email | (optional) Indicate the email address to which responses emails from the end-users will be sent. |
48+
| Subject | Write the subject of the email. Variables can be used (see [Developer documentation](https://strapi.io/documentation/developer-docs/latest/development/plugins/users-permissions.html#templating-emails)). |
49+
50+
4. Edit the content of the email in the "Message" textbox. Email templates content is in HTML and uses variables (see [Developer documentation](https://strapi.io/documentation/developer-docs/latest/development/plugins/users-permissions.html#templating-emails)).
51+
5. Click on the **Save** button.
52+
53+
## Configuring advanced settings
54+
55+
All settings related to the Users & Permissions plugin are managed from the *Advanced Settings* sub-section, including the choice of a default role for end-users, the enablement of sign-ups and email confirmation, as well as the choice of landing page for resetting a password.
56+
57+
![Advanced settings interface](../assets/settings/up_settings.png)
58+
59+
1. Go to the *Users & Permissions plugin > Advanced settings* sub-section of the settings interface.
60+
2. Configure the settings:
61+
62+
| Setting name | Instructions |
63+
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------|
64+
| Default role for authenticated users | Click the drop-down list to choose the default role for new end-users. |
65+
| One account per email address | Click on the **ON** button to limit to 1 the number of end-user accounts with the same email address. Click on **OFF** to disable this limitation and allow several end-users accounts to be associated with the same email addess (e.g. `[email protected]` can be used when logging in via several different providers). |
66+
| Enable sign-ups | Click on the **ON** button to enable end-users sign-ups. Click on **OFF** to prevent end-users registration to your front-end application(s). |
67+
| Reset password page | Indicate the URL of the reset password page for your front-end application(s). |
68+
| Enable email confirmation | Click on the **ON** button to enable end-users account confirmation by sending them a confirmation email. Click on **OFF** to disable account confirmation. |
69+
| Redirection url | Indicate the URL of the page where end-users should be redirected after confirming their Strapi account. |

0 commit comments

Comments
 (0)