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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...