richardsjoqvist/silverstripe-optionaltreedropdownfield

This module extends TreeDropdownField to allow clearing a selection

1.1.0 2013-12-02 13:43 UTC

README

This module extends SilverStripe TreeDropdownField to allow clearing a selection.

Requirements

  • SilverStripe 3.1

Installation

Drop folder into your SilverStripe project and run /dev/build

Usage

$fields = new FieldList();
$treeField = new OptionalTreeDropdownField('MyFieldID', 'My Field Title', 'SiteTree');
$treeField->setEmptyString('No page'); $fields->push($treeField);