You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a site that I am migrating from v7. Currently I can't go straight from v7 > v12 but can go v7 > v10 > v12.
In the v7 site there is a content type with 2 ancestors which looks like this:
BaseDoctype
| BaseMetaDoctype
| StandardContentPage
Is there any way that as part of the migration BaseDoctype can be moved down so that StandardContentPage is composed of BaseDoctype & BaseMetaDoctype instead of what currently happens where it retains the original hierarchy? The reason being is that I have a case where I need to retain the BaseMetaDoctype composition and drop the BaseDoctype for one particular content type.
Create Temporary Properties on Destination Content Type:
Add temporary properties to the StandardContentPage content type that mirrors the properties from the BaseDoctype content type composition we want to move. This ensures that the properties will be available in the new content type. The temporary properties must not have the same properties aliases so suggest prefixing with temp_ or similar.
Copy Existing Data to Temporary Properties:
Write a script to copy data from the BaseDoctype properties (currently in BaseMetaDoctype) to the temporary properties in StandardContentPage.
Remove BaseDoctype Composition from BaseMetaDoctype:
Once the data is safely copied to StandardContentPage, remove the BaseDoctype composition from BaseMetaDoctype.
Add BaseDoctype composition directly to StandardContentPage:
Copy Data Back to BaseDoctype Properties:
Write another script to copy the data from the temporary properties in StandardContentPage back to the appropriate BaseDoctype properties.
Remove the temporary properties from StandardContentPage.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a site that I am migrating from v7. Currently I can't go straight from v7 > v12 but can go v7 > v10 > v12.
In the v7 site there is a content type with 2 ancestors which looks like this:
Is there any way that as part of the migration BaseDoctype can be moved down so that StandardContentPage is composed of BaseDoctype & BaseMetaDoctype instead of what currently happens where it retains the original hierarchy? The reason being is that I have a case where I need to retain the BaseMetaDoctype composition and drop the BaseDoctype for one particular content type.
Discussion also started on Discord
Beta Was this translation helpful? Give feedback.
All reactions