Download the PHP package dia-nz/silverstripe-nestedcheckboxsetfield without Composer
On this page you can find all versions of the php package dia-nz/silverstripe-nestedcheckboxsetfield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dia-nz/silverstripe-nestedcheckboxsetfield
More information about dia-nz/silverstripe-nestedcheckboxsetfield
Files in dia-nz/silverstripe-nestedcheckboxsetfield
Download dia-nz/silverstripe-nestedcheckboxsetfield
More information about dia-nz/silverstripe-nestedcheckboxsetfield
Files in dia-nz/silverstripe-nestedcheckboxsetfield
Vendor dia-nz
Package silverstripe-nestedcheckboxsetfield
Short Description Adds a level of nesting to a CheckboxSetField using a has_many/has_one relationship
License WTFPL
Homepage https://github.com/dia-nz/silverstripe-nestedcheckboxsetfield
Package silverstripe-nestedcheckboxsetfield
Short Description Adds a level of nesting to a CheckboxSetField using a has_many/has_one relationship
License WTFPL
Homepage https://github.com/dia-nz/silverstripe-nestedcheckboxsetfield
Keywords Formssilverstripe
Please rate this library. Is it a good library?
Informations about the package silverstripe-nestedcheckboxsetfield
silverstripe-nestedcheckboxsetfield
This adds an extra level to a CheckboxSetField, which provides some structure to a large dataset.
Example Usage
The below will produce a set of nested fields where each Tag (which is selectable) sits under a Tag Category (just a heading, not selectable).
class Page extends SiteTree { static $many_many = array( 'PageTags' => 'Tag' );
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->insertBefore(
NestedCheckboxSetField::create('PageTags', 'Page Tags')
->setRootClass('TagCategory')
->setRootTitle('Title')
->setChildRelation('Tags')
->setChildTitle('Title'),
'Content'
);
}
}
class Tag extends DataObject { static $db = array( 'Title' => 'Varchar(100)' );
static $has_one = array(
'Category' => 'TagCategory'
);
}
class TagCategory extends DataObject { static $db = array( 'Title' => 'Varchar(100)' );
static $has_many = array(
'Tags' => 'Tag'
);
}
All versions of silverstripe-nestedcheckboxsetfield with dependencies
PHP Build Version
Package Version
The package dia-nz/silverstripe-nestedcheckboxsetfield contains the following files
Loading the files please wait ....