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

iterating through fields in Dynamic module contnet ?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 1 answered
  1. Tigger
    Tigger avatar
    17 posts
    Registered:
    25 Apr 2016
    13 May 2016
    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:
    06 Sep 2017
    19 May 2016
    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 2016 in reply to Svetoslav Manchev
    Link to this post
    Thanks 
    Answered
3 posts, 1 answered