iterating through fields in Dynamic module contnet ?

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

iterating through fields in Dynamic module contnet ?

All Replies

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

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;

 

 

Posted by Community Admin on 19-May-2016 00:00

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:
http://docs.sitefinity.com/for-developers-set-the-value-of-a-custom-field

Regards,
Svetoslav Manchev
Telerik
 
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
 

Posted by Community Admin on 20-May-2016 00:00

Thanks 

This thread is closed