mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9846 from AntonyThorpe/patch-1
Updated TreeDropdownField.php documentation
This commit is contained in:
commit
ec1ebc0908
@ -31,13 +31,15 @@ use SilverStripe\ORM\Hierarchy\MarkedSet;
|
|||||||
* <b>Usage</b>.
|
* <b>Usage</b>.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
|
* use SilverStripe\CMS\Model\SiteTree;
|
||||||
|
* ...
|
||||||
* static $has_one = array(
|
* static $has_one = array(
|
||||||
* 'RightContent' => 'SiteTree'
|
* 'RightContent' => SiteTree::class
|
||||||
* );
|
* );
|
||||||
*
|
*
|
||||||
* function getCMSFields() {
|
* 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>
|
* </code>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user