RE: Not able to use web content structure from 6.2 to 7.2

Durai pandian, modified 6 Years ago. New Member Posts: 11 Join Date: 10/25/12 Recent Posts
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:

thumbnail
Minhchau Dang, modified 6 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
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.
thumbnail
Christoph Rabel, modified 6 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
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.
Durai pandian, modified 6 Years ago. New Member Posts: 11 Join Date: 10/25/12 Recent Posts
Thank you Christoph for the reply. I have few structures so let me recreate manually.