Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
i have a site in 7.5.11 which is already filled with content.
Recent changes in scope and requirement means that i need to make some changes to the Document Types, removing some properties and adding others.
Some of the properties to remove are currently in compoistions and i cannot just delete them as i need a lot of the data to remain in the parent Dcument Type.
QUESTION: is there a way to detach a property from a composition and attach it to its parent doctype without losing data?
at the moment, i am thinking i may have to add a new property of the same type, copy the data to the new property, delete the original, rename the new property. Is there anything simpler?
You could do this programmatically, just creating the new property and then using the API copy all the data over. I don't think there is another way.
The only other thought is that if you don't HAVE to remove the old property then you could use the new field but default to the old one. A few ways of achieving that but this is the simpliest.
It might also be worth checking out:
Both have potential to do as needed
Thanks David! - I like the coalesce idea, but that does mean I have to go through and edit all my views.
I am not really a .NET guy, so the API route not the best way for me.
Great shout on CMS Import - we have a license for the site - didn't even occur to me.
Right - that's my weekend sorted.
You would need to edit all your views I'm afraid. Have a good weekend 👅.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted