I would like to setup a document type, that when used to create a page automatically created a couple of sub-pages based on another document type.
For example I have the following document types, home, A and B. When a page is created based on document type Home this works as normal, but when one is created based on A a sub-page of type B is automatically created.
Auto creating pages
I do not know if this is possible, but...
I would like to setup a document type, that when used to create a page automatically created a couple of sub-pages based on another document type.
For example I have the following document types, home, A and B. When a page is created based on document type Home this works as normal, but when one is created based on A a sub-page of type B is automatically created.
Thanking you in advance
TT
Hi TT,
Yes, perfectly possible.
You will need to do two things:
1) Hook into the correct event handler
http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events/event-examples
2) Create the new nodes
http://umbraco.org/documentation/books/api-cheatsheet/creating-a-document
Rich
Thanks for this Rich
I will give this a go and let you know how it goes.
Once again thanks for the help.
TT
is working on a reply...