Skip to content

Commit 6a1086e

Browse files
Merge branch '6' into 7.0
2 parents eb42d28 + e629c5b commit 6a1086e

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
---
2-
title: Installation
2+
title: Configuration
33
---
44

5-
# Installation
6-
7-
Installation should be done using Composer:
8-
9-
```bash
10-
composer require silverstripe/userforms
11-
```
12-
13-
## Configuration
5+
# Configuration
146

157
After installation, make sure you rebuild your database through `sake db:build --flush`.
168

179
You should see a new page type in the CMS called "User Defined Form". This has a new "Form" tab which has your form builder.
1810

19-
### File uploads and security
11+
## File uploads and security
2012

2113
The module allows adding a "File Upload Field" to a form.
2214
The field enables users of this form to upload files to the website's assets
@@ -32,7 +24,7 @@ configuration setting.
3224
The allowed upload size can be set in the CMS as long as it doesn't exceed the PHP configuration
3325
for this website (the smaller value of `upload_max_filesize` or `post_max_size`).
3426

35-
### Securing uploaded files
27+
## Securing uploaded files
3628

3729
By adding a File Upload Field to your user form you can allow your website users to upload files, which will be stored in a user-defined folder in your Silverstripe CMS system. You can access these files via the "Submissions" tab, or from the "Files" area in the admin interface.
3830

@@ -44,7 +36,7 @@ You should think carefully about the use case for file uploads.
4436
Unauthorised viewing of files might be desired, e.g. submissions for public competitions.
4537
In other cases, submissions could be expected to contain private data.
4638

47-
### Custom email templates
39+
## Custom email templates
4840

4941
If you want to use custom email templates set the following config option.
5042

@@ -55,7 +47,7 @@ SilverStripe\UserForms\Model\UserDefinedForm:
5547
5648
Any templates placed in your `email_template_directory` directory will be available for use with submission emails.
5749

58-
### Custom multi-step button text
50+
## Custom multi-step button text
5951

6052
If you want to change the button text when using the Multi-Step/Page Break feature, simply add the following to your `config.yml`:
6153

docs/en/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ and without getting involved in any PHP code.
1818
- Define custom error messages and validation settings
1919
- Optionally display and hide fields using JavaScript based on users input
2020

21+
## Installation
22+
23+
```bash
24+
composer require silverstripe/userforms
25+
```
26+
27+
## GitHub repository
28+
29+
<https://github.com/silverstripe/silverstripe-userforms>
30+
2131
## Thanks
2232

2333
I would like to thank everyone who has contributed to the module, bugfixers,

0 commit comments

Comments
 (0)