We have created a custom field in a List called "ImageIcon". We also have a user control imported as a custom widget called Header.ascx. I would like to know how to access the custom field from the code behind.
Here is the code I have so far:
String myPageName = Request.Url.Segments[Request.Url.Segments.Length - 1].Split(
ListsManager manager = ListsManager.GetManager();
Telerik.Sitefinity.Lists.Model.ListItem currentItem = manager.GetListItems()
.Where(i => i.UrlName == myPageName)
imgMainLogo.ImageUrl = currentItem.?????
This retrieves the correct List Item. Now, where can I get the value in my custom field? We are currently storing
the MediaUrl of the image the user selects in the "ImageIcon" field. How are custom fields accessed through the API?
Thank you for the help.