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

eZ Community » Forums » Developer » Fetch attributes with Object...
expandshrink

Fetch attributes with Object relations with list of check boxes

Fetch attributes with Object relations with list of check boxes

Saturday 31 May 2014 7:10:00 am - 2 replies

Hi,

Any one know how to fetch the values from Object relations attribute  with list of check boxes,

{$vidNodes.data_map.selection_content_providers.content.relation_list|dump()}

i have done to this eztent.

please help.happy.gif Emoticon

Wednesday 04 June 2014 11:56:38 am

relation_list will give you an array of object info - you can loop through this array to print out the information you need.

For example:

{def $content_provider_ids = $vidNodes.data_map.selection_content_providers.content.relation_list}
{foreach $content_provider_ids as $id}
    {content_view_gui content_object=fetch( 'content', 'object', hash( 'object_id', $id.contentobject_id ) ) view=embed}
{/foreach}

Is this what you wanted?

Modified on Wednesday 04 June 2014 12:07:24 pm by Geoff Bentley

Wednesday 04 June 2014 6:54:11 pm

Yes,that is what i need exactly.Thank you very much.happy.gif Emoticon

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from