richardsjoqvist / silverstripe-optionaltreedropdownfield
This module extends TreeDropdownField to allow clearing a selection
Installs: 8 473
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 6
Open Issues: 0
Type:silverstripe-module
Requires
- php: >=5.3.2
- composer/installers: *
- silverstripe/framework: ^3.1.0
This package is not auto-updated.
Last update: 2024-12-21 16:10:18 UTC
README
This module extends SilverStripe TreeDropdownField to allow clearing a selection.
Requirements
- SilverStripe 3.1 (or higher)
Installation
- Run
composer require richardsjoqvist/silverstripe-optionaltreedropdownfield
- Run
sake /dev/build
Usage
$fields = new FieldList(); $treeField = new OptionalTreeDropdownField('MyFieldID', 'My Field Title', 'SiteTree'); $treeField->setEmptyString('No page'); $fields->push($treeField);