+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / iterating through fields in Dynamic module contnet ?

iterating through fields in Dynamic module contnet ?

3 posts, 1 answered
  1. Tigger
    Tigger avatar
    17 posts
    Registered:
    25 Apr 2016
    13 May
    Link to this post

    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;

     

     

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    19 May
    Link to this post
    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
     
  3. Tigger
    Tigger avatar
    17 posts
    Registered:
    25 Apr 2016
    20 May in reply to Svetoslav Manchev
    Link to this post
    Thanks 
    Answered
3 posts, 1 answered