This is not possible in the UI (I can set other Document Type Compositions, but the check box showing the document type's parent is greyed out).
I've looked in the database and see there is table called cmsContentType, which lists the document types.
Some old blog and forum posts I found made mention of a masterContentType field in this table, which could be edited directly.
However, this does not appear to exist any more. Maybe this is due to the recent introduction of the Compositions feature? The cmsContentType2cmsContentType table corresponds to the editable text boxes that I can edit in the UI and would not need to resort to a database hack.
Can anyone help? It must be set somewhere in the database...
What version of umbraco did you run the script on? I have 7.5.3 and it complains about cmsPropertyTypeGroup.parentGroupId the field parentGroupId is no longer around in 7.5.3 schema.
Change Document Type Parent
I want to change a document type's parent.
This is not possible in the UI (I can set other Document Type Compositions, but the check box showing the document type's parent is greyed out).
I've looked in the database and see there is table called cmsContentType, which lists the document types.
Some old blog and forum posts I found made mention of a masterContentType field in this table, which could be edited directly.
However, this does not appear to exist any more. Maybe this is due to the recent introduction of the Compositions feature? The cmsContentType2cmsContentType table corresponds to the editable text boxes that I can edit in the UI and would not need to resort to a database hack.
Can anyone help? It must be set somewhere in the database...
Actually, I found this excellent SQL script (from Flavio Spezi) that solved my problem: https://our.umbraco.org/forum/templating/templates-and-document-types/20005-Change-Existing-Document-Type-to-Inherit-from-Another?p=1
The parent relationship is held in the umbracoNode table.
Nick,
What version of umbraco did you run the script on? I have 7.5.3 and it complains about cmsPropertyTypeGroup.parentGroupId the field parentGroupId is no longer around in 7.5.3 schema.
Regards
Ismail
is working on a reply...