Is there a way to way to have umbraco create a series of child documents when a document of a certain document type is created automatically?
I have a fundraiser document type and registration document type as well as a handful of others. When a new fundraiser is created I need to have a register page and some others created under it. Is there a way for these child pages to created automaticaly whenever a new fundraiser document is created?
Create child documents when a document is created
Is there a way to way to have umbraco create a series of child documents when a document of a certain document type is created automatically?
I have a fundraiser document type and registration document type as well as a handful of others. When a new fundraiser is created I need to have a register page and some others created under it. Is there a way for these child pages to created automaticaly whenever a new fundraiser document is created?
Hi,
You could do this with the API by using ApplicationBase Events, something like:
See wiki: Using ApplicaitonBase to register events
Richard Soeteman also had a good blog post about events
-Tom
Awesome! Thanks for the answer, Tom. This CMS rocks! What a beautiful api.
Not a problem! Also I forgot to mention this will only create the document, not publish anything
If you want to set properties and/or Publish:
-Tom
Great, this is just what I was looking for.
Thanks.
is working on a reply...