mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3140 from marijnkampf/patch-2
Update uploadfield.md
This commit is contained in:
commit
08ea44d458
@ -341,6 +341,7 @@ gallery the below code could be used:
|
||||
// In GalleryPage.php
|
||||
class GalleryPage extends Page {}
|
||||
class GalleryPage_Controller extends Page_Controller {
|
||||
private static $allowed_actions = array('Form');
|
||||
public function Form() {
|
||||
$fields = new FieldList(
|
||||
new TextField('Title', 'Title', null, 255),
|
||||
|
Loading…
Reference in New Issue
Block a user