richardsjoqvist/silverstripe-optionaltreedropdownfield

There is no license information available for the latest version (1.1.0) of this package.

This module extends TreeDropdownField to allow clearing a selection

Installs: 1 695

Dependents: 1

Stars: 2

Watchers: 1

Forks: 4

Open Issues: 0

Type: silverstripe-module

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);