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 » Get ezselection value

Get ezselection value

Get ezselection value

Friday 11 September 2015 8:59:51 am - 1 reply

Hi there,

I'm trying to get the value of an ezselection field on a Twig eZ5 template but I can't catch anything but the key. I tryed ez_field_value( content, 'selection' ) and ez_render_field but without the expected result.

How can I do that please?

Tuesday 22 September 2015 11:58:08 am


What do you get as a result?

Using ez_field_value you should get selected element number, but with ez_render_field you should get the same text value for option, as you see while choosing selection element during edit in admin panel.

What do you want to achieve?


Modified on Tuesday 22 September 2015 11:59:02 am by Michał Szczech


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

36 542 Users on board!

Forums menu

Proudly Developed with from