Copied to clipboard

Flag this post as spam?

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


  • Pinal Bhatt 298 posts 390 karma points
    Mar 14, 2011 @ 18:41
    Pinal Bhatt
    0

    "Has Master Document Type" button not getting active

    I have document type created in "DocumentTypes folder". Now when I try to create new document type property as per documentation I am expecting "Has Master Document Type" radio button to be active. But i am disappointed.

    Below is the screen shot:

    Any body any help please?

  • Sasa Popovic 77 posts 367 karma points
    Mar 14, 2011 @ 18:57
    Sasa Popovic
    0

    @Pinal, if you want to create a new property for UmbracoRootDocType document type that you already made then you should not go through the same steps as for creation of document type. You should instead just make a new public property in your UmbracoRootDocType.cs file and mark it with the right attribute.

    Here are more details on that from tutorials:

    Every property that you want to be treated as a document type property must be marked with a DocumentTypeProperty attribute. This means that if you create a property in this class and you don't add [DocumentTypeProperty] attribute above it, that property won't be treated as a document type property. Once you add DocumentTypeProperty attribute to the property, you can use it to set the various settings of that property.

    Or did I missunderstand the problem you have?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 14, 2011 @ 19:02
    Pinal Bhatt
    0

    yes i think you have missunderstood the problem. i am not looking to add new property for UmbracoRootDocType.  I have already created that:

    Now inheriting this class i want to create new document type. Following mentioned at http://usitebuilder.vegaitsourcing.rs/tutorials?id=22389 is not working for me:

    Ok, now we can see that DocumentType wizard recognized that there are already some document types declared in the project and offered us to use Page as a master document type for this newly created document type. You can certainly choose  'No Master Document Type' option if you don't want your document type to have a master document type. For our News document type we do want Page as its master document type so click on OK. The following class will be generated for you:


  • Vladan Ostojic 94 posts 210 karma points
    Mar 14, 2011 @ 23:02
    Vladan Ostojic
    0

    @Pinal,

    Can you make sure that the project compiles before you try to add another document type?

    BTW, you can create new document type without plugin as well - just create a new subclass of your base document type class and add appropriate attribute to it.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 14, 2011 @ 23:50
    Pinal Bhatt
    0

    Yes project compiles fine. Compiled many times.

  • Sasa Popovic 77 posts 367 karma points
    Mar 15, 2011 @ 10:56
    Sasa Popovic
    0

    Can you maybe share your complete solution (source code, projects, solution file) with us so that we can check it and see what the problem is with it?

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 13:37
    Pinal Bhatt
    0

    I cannot send you the whole solution, but i will try to simulate it with single project in solution and send you that. On what email id should i send it?

  • Vladan Ostojic 94 posts 210 karma points
    Mar 15, 2011 @ 13:43
    Vladan Ostojic
    0

    @Pinal, you can send it to either sasa at vegaitsourcing.rs or to vladan at vegaitsourcing.rs.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 14:40
    Pinal Bhatt
    0

    Sorry but i am not able to reproduce the issue in the simulated solution/project. Yes issue still exists in my original project. For now i have my own workaround - I manualy inherit for master document type.

  • Vladan Ostojic 94 posts 210 karma points
    Mar 15, 2011 @ 14:48
    Vladan Ostojic
    0

    Ok, thank's for reporting this Pinal.

Please Sign in or register to post replies

Write your reply to:

Draft