eZ Community » Forums » eZ Platform » how to display the value of an...
expandshrink

how to display the value of an attribute of an relation object ?

how to display the value of an attribute of an relation object ?

Tuesday 03 October 2017 5:20:57 pm - 2 replies

Hello,I have an object that has a unique relation to another object that has itself a ez_selection attribute, what is the method to retrieve the values ​​of my ez_selection field ?

  • If I go through a custom controller, do I have to link it to a template (it seems odd to create a template just to display one value) ?
  • Is it possible to do it directly in my template (without going through php) ?

Thank you

Saturday 14 October 2017 2:03:31 pm

Hello Partrice,

You mention going through templates directly which reminds me of this solution which you might find value in: https://github.com/cjw-network/CjwPublishToolsBundle#doku specifically the part about the twig function, "cjw_content_fetch".

I hope this helps.

Cheers,
Heath

Saturday 09 December 2017 12:42:09 pm

The reply has been removed because of violation of forum rules.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from