mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update form template directory
As of SS4.0, template files for forms need to be in the root template directory as the core forms folder no longer exists.
This commit is contained in:
parent
eae3d0cfaa
commit
b6c1294860
@ -16,7 +16,7 @@ $field = new TextField(..);
|
||||
$field->setTemplate('MyCustomTextField');
|
||||
```
|
||||
|
||||
Both `MyCustomTemplate.ss` and `MyCustomTextField.ss` should be located in **mysite/templates/forms/** or the same directory as the core.
|
||||
Both `MyCustomTemplate.ss` and `MyCustomTextField.ss` should be located in **mysite/templates/** or the same directory as the core.
|
||||
|
||||
<div class="notice" markdown="1">
|
||||
It's recommended to copy the contents of the template you're going to replace and use that as a start. For instance, if
|
||||
|
Loading…
Reference in New Issue
Block a user