When you perform a Copy of a document type it will copy its entire structure, regardless of what you are setting as the master of the new copy.
This is to ensure that all properties are copied across, and yes you can end up with duplicates as you have noticed.
One of the reasons for this is the copy isn't able to detect if the new parent is different from the old parent, due to lacking in design and/ or this being an edge-case scenario.
If you believe it to be a bug (I'd actually call it a by-design feature) then log it on codeplex and if there is enough voting for it it will be addressed.
But I believe it would be a good feature if that works without any human intervention.
By just having an if condition in creation time of doc type it can be fixed.(if no master doc is selected copy all the properties else exclude the master doctype properties. simple as that) when a doctype has got many properties it would be headache to deal with removing or adding properties.
I believe this is a bug!!! duplicate properties from master doc type
I have got a master document type with the (umbracoUrlName,umbracoRedirect,umbracoNavihide). called Standard Pages.
I created a doc type called article with the Standard Pages master doc type. (everything is fine till now).
copied the article doc type and selected Standard Pages as master page. the above properties are dubplicated.
I think when you select the master page it should eliminate the properties in common.
I think this is a bug.
When you perform a Copy of a document type it will copy its entire structure, regardless of what you are setting as the master of the new copy.
This is to ensure that all properties are copied across, and yes you can end up with duplicates as you have noticed.
One of the reasons for this is the copy isn't able to detect if the new parent is different from the old parent, due to lacking in design and/ or this being an edge-case scenario.
If you believe it to be a bug (I'd actually call it a by-design feature) then log it on codeplex and if there is enough voting for it it will be addressed.
Hi Slace,
I think we both right.
But I believe it would be a good feature if that works without any human intervention.
By just having an if condition in creation time of doc type it can be fixed.(if no master doc is selected copy all the properties else exclude the master doctype properties. simple as that) when a doctype has got many properties it would be headache to deal with removing or adding properties.
Hope that makes sense.
Ali
is working on a reply...