I have a document type called Web Page and a document type called elements. The elements doc type holds all the different layouts eg, cards, banners, carousels, etc the page doc type has the default common elements for a page.
What I want to is when adding the page doc type in the content section that the elements doc type is automatically attached as a sub object to the page.
The idea is to make the user experience a lot less cluttered.
Has anybody go a solution or can point me in the right direction
take a look at the events section of the Umbraco Documentation: https://our.umbraco.com/documentation/Reference/Events/ContentService-Events
You can attach your own handle to the published event, check if it is a brand new node, and trigger an automatic publish of a child node of 'elements' type.