Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: ref. EZP-24800

...

The field definition of this FieldType can be configured with two or three options:

NameTypeDefault valueDescription
selectionMethodintself::SELECTION_BROWSEThis setting defines the selection method. It expects an integer (0/1). 0 stands for self::SELECTION_BROWSE, 1 stands for self::SELECTION_DROPDOWN.
selectionRootstringnullThis setting defines the selection root.

Status
colourYellow
title2017.08

selectionContentTypes

array[]An array of ContentType ids that are allowed for related Content
Code Block
languagephp
titleRelation FieldType example settings
use eZ\Publish\Core\FieldType\Relation\Type;

$settings = array(
	"selectionMethod" => 1,
	"selectionRoot" => null
);

...