"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.
@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.
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:
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.
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?
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.
"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?
@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?
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:
@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.
Yes project compiles fine. Compiled many times.
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?
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?
@Pinal, you can send it to either sasa at vegaitsourcing.rs or to vladan at vegaitsourcing.rs.
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.
Ok, thank's for reporting this Pinal.
is working on a reply...