richardsjoqvist/silverstripe-optionaltreedropdownfield

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

This module extends TreeDropdownField to allow clearing a selection

1.1.3 2016-04-06 04:54 UTC

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

  1. Run composer require richardsjoqvist/silverstripe-optionaltreedropdownfield
  2. Run sake /dev/build

Usage

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