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: updated according to comment

 

This field type represents one or multiple relations to content.

...

Table of Contents
minLevel2

Description

This FieldType makes possible to store and retrieve values of relation to content.

Input expectations

Type
Description
Example
int|stringId of the related Content42
arrayAn array of related Content idsarray( 24, 42 )
eZ\Publish\API\Repository\Values\Content\ContentInfo

ContentInfo instance of the related Content

 
eZ\Publish\Core\FieldType\RelationList\ValueRelationList FieldType Value ObjectSee Value Object documentation section below.

...

Code Block
languagephp
titleExample of using settings in PHP
linenumberstrue
use eZ\Publish\Core\FieldType\RelationList\Type;

$settings = array(
	"selectionMethod" => Type::SELECTION_BROWSE,
	"selectionRootselectionDefaultLocation" => null,
    "selectionContentTypes" => array()
 );