Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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")
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..
is working on a reply...
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.
Continue discussion
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")
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..
is working on a reply...
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.