• eZ Systems Website • Editor documentation
Back to the top
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Current »
This Field Type represents a relation to a Content item.
Relation
ezobjectrelation
mixed
This Field Type makes it possible to store and retrieve the value of relation to a Content item.
string
"150"
integer
The Value class of this Field Type contains the following properties:
$destinationContentId
string|int|null
The Relation\Value constructor will initialize a new Value object with the value provided. It expects a mixed value.
\Value
This Field Type validates whether the provided relation exists, but before it does that it will check that the value is either string or int.
The field definition of this Field Type can be configured with two options:
selectionMethod
int
self::SELECTION_BROWSE
This setting defines the selection method. It expects an integer (0/1). 0 stands for self::SELECTION_BROWSE, 1 stands for self::SELECTION_DROPDOWN.
self::SELECTION_DROPDOWN
NOTE: Dropdown not implemented in Platform UI yet, only browse is used currently.
selectionRoot
null
Note: These settings are meant for future use in user interface when allowing users to select relations.