This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » ezselection Key-Value pair within...

ezselection Key-Value pair within cms, content-type

ezselection Key-Value pair within cms, content-type

Tuesday 07 June 2016 8:39:39 am

Hello, i am new in eZstudio and i am trying to create ezselection-field within some content.
This ezselection-field must contain key-value pair´s like in Dokumentation:
use eZ\Publish\Core\FieldType\Selection\Type;

$settings = array(    "isMultiple" => true,    "options" => array(1 => 'One', 2 => 'Two', 3 => 'Three'));

I dont know, how can i set key-value pairs wihtin cms.
I define some content and add typefield "ezselection". Within ezselection i have only one field "options". And when i am trying to type something like this: "valueA => black" "valueB => white"
It will be rendered by creation of conent: "valueA => black" "valueB => white"
But i need, that it will only shown "valueA" or "ValueB". At the backend it will be mapped on "black" or "white". But within cms, by creatation of content i wanna see only keys, which will be mapped on values and not key => value.
How can i do that?

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from