Copied to clipboard

Flag this post as spam?

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


  • Michael 125 posts 409 karma points
    Dec 04, 2012 @ 16:25
    Michael
    0

    "Register" new Document Type

    Who can help me to "register" new Document Type in Settings -> DocumentTypes when Application start.

    I've created new Document Type "TestType" inherits from DocumentType.

    Where I should register this type and user can create new content page with my type?

  • bob baty-barr 1180 posts 1294 karma points MVP
    Dec 04, 2012 @ 18:51
    bob baty-barr
    0

    @Mike... welcome!

    Each document type has a tab named 'structure' this is where you set the rules for what types of documents can be nested beneath others.

    typically at the root of the content tree, when you right click and select create, you have access to all the docTypes.

    Let's say you have a HomePage docType and you want to create TestType under the home page. You must go to the Structure tab of the HomePage docType and check the box to allow TestType to be created under it.

    now when you go back to content and right click on your home node and select create... in the dropdown menu below the text field you shoudl see your TestType docType.

    hope you find this helpful, and once again... welcome to umbraco!

  • Michael 125 posts 409 karma points
    Dec 05, 2012 @ 08:51
    Michael
    0

    Hi Bob,

    Thanks for this. I know how create doc type in Umb admin. I've spend 4 days with this persons (@drobar and @darrenferguson).

    My question is how to register this type when application started.

    I create new docType in my solution in VS called Test and inherit him from DocumentType.

    But I don't know how I can add this in UmbracoApplication -> Application_Start.

    How I can put this type to the db and then I can see this in the Settings -> DocumentTypes

    Thanks 

  • bob baty-barr 1180 posts 1294 karma points MVP
    Dec 05, 2012 @ 15:22
    bob baty-barr
    0

    @Mike

    i don't typically create docTypes in visual studio... sorry i cannot be of more help. I do it the old fashioned way through the umbraco UI which i explained above.

    hopefully Doug or Darren will see your post and offer assistance.

    Best of Luck!

  • 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