Copied to clipboard

Flag this post as spam?

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


  • TaoistTotty 246 posts 314 karma points
    Oct 12, 2010 @ 12:59
    TaoistTotty
    0

    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

  • Rich Green 2246 posts 4006 karma points
    Oct 12, 2010 @ 13:12
    Rich Green
    1

    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

     

  • TaoistTotty 246 posts 314 karma points
    Oct 12, 2010 @ 13:55
    TaoistTotty
    0

    Thanks for this Rich

    I will give this a go and let you know how it goes.

    Once again thanks for the help.

    TT

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies