mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated TreeDropdownField.php documentation
Updated code example for SS4
This commit is contained in:
parent
2f5d976072
commit
77ecbd854d
@ -31,13 +31,15 @@ use SilverStripe\ORM\Hierarchy\MarkedSet;
|
||||
* <b>Usage</b>.
|
||||
*
|
||||
* <code>
|
||||
* use SilverStripe\CMS\Model\SiteTree;
|
||||
* ...
|
||||
* static $has_one = array(
|
||||
* 'RightContent' => 'SiteTree'
|
||||
* 'RightContent' => SiteTree::class
|
||||
* );
|
||||
*
|
||||
* function getCMSFields() {
|
||||
* ...
|
||||
* $treedropdownfield = new TreeDropdownField("RightContentID", "Choose a page to show on the right:", "SiteTree");
|
||||
* $treedropdownfield = new TreeDropdownField("RightContentID", "Choose a page to show on the right:", SiteTree::class);
|
||||
* ..
|
||||
* }
|
||||
* </code>
|
||||
|
Loading…
Reference in New Issue
Block a user