Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Apr 10, 2012 @ 08:55
    Tom
    0

    umbraco v5 multilevel nav?

    Just wondering if we can create a v5 forum as razor has changed enough.. just wondering how I'd translate this to v5 razor syntax as AncestorsOrSelf doesn't take level as an arg..

     

    Model.AncestorOrSelf(1).Children.Where("Visible")

  • Tom 713 posts 954 karma points
    Apr 10, 2012 @ 09:06
    Tom
    0

    I tried @foreach (var page in DynamicModel.AncestorOrSelfs.Where("Level == @0", 1).Children.Where("Visible"))

     

    but no joy is there any documentation on DynamicContentList..

    arg all these new types post v4 and documentation is sad..

Please Sign in or register to post replies

Write your reply to:

Draft