Copied to clipboard

Flag this post as spam?

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


  • Roel Snetselaar 151 posts 305 karma points
    Jul 15, 2014 @ 00:22
    Roel Snetselaar
    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

Please Sign in or register to post replies

Write your reply to:

Draft