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
Hi,
If I want to get all the nodes filtered by his alias I can do that in my page using
var roots= Model.Root().Siblings().Where(x => x.ContentType.Alias == "aliasToLookFor");
But how can I do the same from a custom RenderMvcController?
Hi Daniel
var roots = Umbraco.AssignedContentItem.Root().Siblings().Where(x => x.ContentType.Alias == "aliasToLookFor");
Thanks,
Alex
Thank you, Alex. You saved my day :D
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
Get sibling nodes from custom controller
Hi,
If I want to get all the nodes filtered by his alias I can do that in my page using
But how can I do the same from a custom RenderMvcController?
Hi Daniel
Thanks,
Alex
Thank you, Alex. You saved my day :D
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.