iterating through fields in Dynamic module contnet ? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

iterating through fields in Dynamic module contnet ?

  • iterating through fields in Dynamic module contnet ?
  • I am new to Sitefinity and am trying to access a field defined as a custom module type;  based on examples it looks like <DynamicContent>.GetValue should do it ....  but in my case "promo" (below) does not have a GetValue method

    Any help would be appreciated


     var something = DynamicModuleManager.GetDataItems(promoType).Where("Title = \"HH3 3013\"");

                foreach (DynamicContent promo in something)




    private readonly Type promoType = TypeResolutionService.ResolveType("Telerik.Sitefinity.DynamicTypes.Model.Promos.Promo");
            private DynamicModuleManager dynamicModuleManager;



  • Hello,

    Can you please check and ensure that there is included the following reference:
    using Telerik.Sitefinity.Model;

    More information about custom fields management through the API is available here:

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  • Thanks