Access a Related Media Custom Field and iterate through the

Posted by Community Admin on 04-Aug-2018 20:29

Access a Related Media Custom Field and iterate through the images.

All Replies

Posted by Community Admin on 12-Oct-2016 00:00

My custom field is a related media field that allows multiple images.  When I attempt to access this field through  node.GetCustomFieldValue("FacebookOgImages"); - it returns a list.  How do I access this list in the view in order to set the open graph image urls needed for the layout?

Posted by Community Admin on 13-Oct-2016 00:00

Hi Todd,

In which view do you want to access this field? Are u using Feather?

Posted by Community Admin on 13-Oct-2016 00:00

I just want to access it in the layout view.  I am using feather.

When I access the custom field through GetCustomFieldValue - it returns a generic list.  Is there a way to iterate through that list?

This thread is closed