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
Does anyone know if the package AutoNode is working im Umbraco 8? Or does anyone know a way to create Nodes automatically by creating another node?
The situation is the following:
If my Client creates a Node of the type "contentPage" i want automatically to create a Node of the type "pageComponents" as an Children of the contentPage.
According to https://our.umbraco.com/packages/backoffice-extensions/autonode/ it seems it's not compatible yet.
In Umbraco 8 you can use somehting like the following code to achieve want you want:
public class Component : IComponent
public void Initialize()
ContentService.Published += ContentServiceOnPublished;
private void ContentServiceOnPublished(IContentService sender, ContentPublishedEventArgs contentPublishedEventArgs)
var publishedContent = contentPublishedEventArgs.PublishedEntities.FirstOrDefault();
if (publishedContent != null && publishedContent.ContentType.Alias == "contentPage")
var componentsContent = sender.Create("Components Page", publishedContent.Id, "pageComponents");
// if multilanguage
componentsContent.SetCultureName("Components Page", "en-US");
public void Terminate()
Then you can register your custom component with a composer. See: https://our.umbraco.com/documentation/Implementation/Composing/ for getting started with Umbraco composing.
Did you find a solution ?
I'm sitting with a similar problem :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted