Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roel 151 posts 305 karma points
    Jul 15, 2014 @ 00:22
    Roel
    0

    Using widget grid recursively

    I'm having trouble using the widget grid recursively.

    Without recursion it's working fine, my code looks like this

    var widgetGridContent = Model.Content.GetPropertyValue<IDictionary<string, IEnumerable<IPublishedContent>>>("sidebarWidgets");      
    
    foreach(var node in widgetGridContent["col1"]) { 
    

    I thought I only needed to add a "true" parameter for recursion, which would look like this.

    var widgetGridContent = Model.Content.GetPropertyValue<IDictionary<string, IEnumerable<IPublishedContent>>>("sidebarWidgets", true);    
    
    foreach(var node in widgetGridContent["col1"]) { 
    

    Except, i'm not getting any results using this.

    Am I missing anything here?

    I'm on Umbraco 7.1.4

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies