Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Not able to use web content structure from 6.2 to 7.2
I need to use the webcontent structure from 6.2 to 7.2. For that I tried copy the source of the structure of 6.2 to 7.2 but in 6.2 it is in XML format and in 7.2 it is in JSON format.Is there any way we can use the same XML in 7.2 also. Thanks in advance.
Attachments:
Durai pandian:
Is there any way we can use the same XML in 7.2 also. Thanks in advance.
Unfortunately, that option is not available out of box.
Technically, Liferay still has code that can read in the XML, which lives inside of the upgrade process code in order to convert from XML to JSON during the upgrade (see UpgradeDynamicDataMapping for the code), but none of this code is accessible outside of the upgrade process.
You could try to uprade your database or if you have problems with that, export the structures/templates into a fresh installation and just upgrade that one. I did a few upgrades in the last couple of years and upgrading the database works quite quell.
If you don't want to keep the content, just continue to use the structure/template, you could also recreate the structures manually. Ok, if you have 50 structures, than it is a bit of work, but if it is just a couple, it shouldn't be a big deal.
Btw.: If you have content and want to keep it, you need to upgrade anyway. The journalarticle xml has changed too and it needs to be transformed too during the upgrade process.
If you don't want to keep the content, just continue to use the structure/template, you could also recreate the structures manually. Ok, if you have 50 structures, than it is a bit of work, but if it is just a couple, it shouldn't be a big deal.
Btw.: If you have content and want to keep it, you need to upgrade anyway. The journalarticle xml has changed too and it needs to be transformed too during the upgrade process.
Thank you Christoph for the reply. I have few structures so let me recreate manually.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™