Access a Related Media Custom Field and iterate through the images. - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

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

  • Access a Related Media Custom Field and iterate through the images.
  • 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?
  • Hi Todd,

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

  • 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?