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,
I am trying to get children of a node but so far i am not able to access them using Umbraco 7 methods, Can anyone help please?
private void ContentService_Publishing(Umbraco.Core.Services.IContentService sender, Umbraco.Core.Events.ContentPublishingEventArgs e) { foreach (var node in e.PublishedEntities) { if(node.ContentType.Alias == "competitions") { //Get childern of this node }
Hi
the Published function passes the content service as the sender object, so you can use that to get more content.
sender.GetChildren(item.Id);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get children of a node at controller level
Hi,
I am trying to get children of a node but so far i am not able to access them using Umbraco 7 methods, Can anyone help please?
Hi
the Published function passes the content service as the sender object, so you can use that to get more content.
is working on a reply...