Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Hubert Thalmann 49 posts 242 karma points
    Apr 25, 2019 @ 08:27
    Hubert Thalmann

    Autonode in Umbraco 8

    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.


  • Corné Strijkert 63 posts 409 karma points
    Apr 26, 2019 @ 08:34
    Corné Strijkert

    According to 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: for getting started with Umbraco composing.

  • Thomas Hansen 137 posts 353 karma points
    Jul 05, 2019 @ 08:08
    Thomas Hansen


    Did you find a solution ? I'm sitting with a similar problem :)

Please Sign in or register to post replies

Write your reply to: