Merge pull request #8752 from DorsetDigital/patch-2

Update 03_Form_Templates.md - add default location
This commit is contained in:
Robbie Averill 2019-01-24 12:28:36 +02:00 committed by GitHub
commit 072e99e369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ Both `MyCustomTemplate.ss` and `MyCustomTextField.ss` should be located in **app
It's recommended to copy the contents of the template you're going to replace and use that as a start. For instance, if It's recommended to copy the contents of the template you're going to replace and use that as a start. For instance, if
you want to create a `MyCustomFormTemplate` copy the contents of `Form.ss` to a `MyCustomFormTemplate.ss` file and you want to create a `MyCustomFormTemplate` copy the contents of `Form.ss` to a `MyCustomFormTemplate.ss` file and
modify as you need. modify as you need.
*The default Form.ss can be found in `/vendor/silverstripe/framework/templates/SilverStripe/Forms/Includes/`*
</div> </div>
By default, Form and Fields follow the SilverStripe Template convention and are rendered into templates of the same By default, Form and Fields follow the SilverStripe Template convention and are rendered into templates of the same