mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
TreeDropdownField with has_one and search
This commit is contained in:
parent
4c062448b8
commit
f324c12e70
@ -5,6 +5,7 @@ class RelationFieldsTestPage extends TestPage {
|
||||
private static $has_one = array(
|
||||
"HasOneCompany" => "Company",
|
||||
"HasOnePage" => "SiteTree",
|
||||
"HasOnePageWithSearch" => "SiteTree",
|
||||
);
|
||||
private static $has_many = array(
|
||||
"HasManyCompanies" => "Company",
|
||||
@ -31,7 +32,8 @@ class RelationFieldsTestPage extends TestPage {
|
||||
$allFields += $checkboxFields;
|
||||
|
||||
$treeFields = array(
|
||||
TreeDropdownField::create('HasOnePage', 'HasOnePage', 'SiteTree'),
|
||||
TreeDropdownField::create('HasOnePageID', 'HasOnePage', 'SiteTree'),
|
||||
TreeDropdownField::create('HasOnePageWithSearchID', 'HasOnePageWithSearch', 'SiteTree')->setShowSearch(true),
|
||||
TreeMultiselectField::create('HasManyPages', 'HasManyPages', 'SiteTree'),
|
||||
TreeMultiselectField::create('ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user