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: packages/docs/docs/getting-started/installation.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,20 +16,17 @@ Complete installation requirements are the exact same as for Strapi itself and c
16
16
17
17
### Installation
18
18
19
-
Install the plugin in your Strapi project.
19
+
To install the plugin run the following command.
20
20
21
-
<TabsgroupId="yarn-npm">
22
-
<TabItemvalue="yarn"label="Yarn">
23
-
```
24
-
yarn add strapi-plugin-webtools
25
-
```
26
-
</TabItem>
27
-
<TabItemvalue="npm"label="NPM">
28
-
```
29
-
npm install strapi-plugin-webtools --save
30
-
```
31
-
</TabItem>
32
-
</Tabs>
21
+
```
22
+
npx webtools-cli install
23
+
```
24
+
25
+
### Enabling
26
+
27
+
The installer wizard will ask you which content-types you want to enable. Select the content types that you consider to be web-pages in your website front-end. Each content-type you select will get it's own unique URL which can be used on the front-end. Read more about enabling content-types in the [usage documentation](/webtools/usage).
28
+
29
+
### Building
33
30
34
31
After successful installation you have to rebuild the admin UI so it'll include this plugin. To rebuild and restart Strapi run:
35
32
@@ -48,6 +45,3 @@ After successful installation you have to rebuild the admin UI so it'll include
48
45
</TabItem>
49
46
</Tabs>
50
47
51
-
### Enabling
52
-
53
-
After successful installation you now need to enable Webtools for the content-types of your choice. Read more about how to do that in the [usage documentation](/webtools/usage).
Copy file name to clipboardExpand all lines: packages/docs/docs/getting-started/usage.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,30 @@ slug: /usage
5
5
---
6
6
7
7
# 💡 Usage
8
-
This plugin is specifically designed for usage in Strapi managed websites. Hence the name **web**tools. The plugin offers a variety of functionalities which you'll have to manually enable in the admin interface.
8
+
This plugin is specifically designed for usage in Strapi managed websites. Hence the name **web**tools. The plugin offers a variety of functionalities which you'll have to manually enable.
9
+
10
+
## Enabling Webtools
11
+
12
+
Once you enable Webtools for a content-type each entry of that type will get it's own unique URL alias. That alias can be used as the slug of your page in the front-end. To enable Webtools, you have a few options.
13
+
14
+
### Using the Admin Interface
9
15
10
16
See below a screenshot of how to enable webtools for a given collection type.
You can also use the Webtools CLI to enable Webtools for your content types. This is especially useful when you want to enable Webtools for multiple content types at once.
23
+
24
+
```bash
25
+
npx webtools-cli enable
26
+
```
27
+
28
+
### Manually
16
29
17
30
:::tip
18
-
Enabling Webtools will write the following to your schema file. You can also add this change manually to enable Webtools without using the content-type builder.
31
+
Enabling Webtools will write the following to your schema file. You can also add this change manually to enable Webtools without using the content-type builder, or the CLI.
0 commit comments