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: Import content old portal to new one(different theme)
Claudio Augusto De Paulo Resende, modified 6 Years ago.
New Member
Posts: 6
Join Date: 4/9/19
Recent Posts
Hi,
I have an old portal in lliferay 6.0, now I am porting this portal to use liferay 6.2 and Ace theme(the old portal doesn't use Ace theme), is there any way to import the old content of the pages to the new portal?
My guess is that there is not, if I am right, Do you sugest me something less hard than change the content page by page?
Thank you in advance.
Kind regards,
Claudio Resende
I have an old portal in lliferay 6.0, now I am porting this portal to use liferay 6.2 and Ace theme(the old portal doesn't use Ace theme), is there any way to import the old content of the pages to the new portal?
My guess is that there is not, if I am right, Do you sugest me something less hard than change the content page by page?
Thank you in advance.
Kind regards,
Claudio Resende
You can upgrade your portal.
https://dev.liferay.com/en/discover/deployment/-/knowledge_base/6-2/upgrading-liferay
https://dev.liferay.com/en/discover/deployment/-/knowledge_base/6-2/upgrading-liferay
Christoph is definitely giving you the best advice -- upgrade. Sadly, I would make sure to unpack my patience before I start as upgrades are rarely easy. The good news is that there are a lot of people participating in the forums with experience migrating across many versions of the portal -- so when you run into trouble, I would highly encourage you to post here for guidance.
Claudio Augusto De Paulo Resende, modified 6 Years ago.
New Member
Posts: 6
Join Date: 4/9/19
Recent Posts
Hi,
Thank you for your reply.
Sorry for my question was not so clear
I have already ported the Liferay version, and everything is ok, I want now to migrate my metadata from the old theme for the new one which is different themes.
I think that is not possible, probably I need to do everything manually, but maybe I can get some idea,
Maybe we have some tool or some better idea, that can help in that process.
I mean, get the text content of one page and import in another.
Thank you for your reply.
Sorry for my question was not so clear
I have already ported the Liferay version, and everything is ok, I want now to migrate my metadata from the old theme for the new one which is different themes.
I think that is not possible, probably I need to do everything manually, but maybe I can get some idea,
Maybe we have some tool or some better idea, that can help in that process.
I mean, get the text content of one page and import in another.
Claudio Augusto De Paulo ResendeI don't understand "metadata from the old theme". Can you give an example of the metadata that you keep in a theme?
I have already ported the Liferay version, and everything is ok, I want now to migrate my metadata from the old theme for the new one which is different themes.
Claudio Augusto De Paulo Resende, modified 6 Years ago.
New Member
Posts: 6
Join Date: 4/9/19
Recent Posts
Sorry for that,
I mean, for example,
we have the page "about" in the old theme, which already has content, for example
"We are a company ....."
now we have another theme, we have the page "about" in the new theme but without content yet,
What I need is to migrate the content to the new theme.
I think the only way is copy and paste because the themes are different.
Basically, I need like this
https://dev.liferay.com/en/discover/portal/-/knowledge_base/6-2/export-import
but between different theme.
I don't know Liferay properly yet, I will study now the database and file structure maybe I can do it developing some script.
I mean, for example,
we have the page "about" in the old theme, which already has content, for example
"We are a company ....."
now we have another theme, we have the page "about" in the new theme but without content yet,
What I need is to migrate the content to the new theme.
I think the only way is copy and paste because the themes are different.
Basically, I need like this
https://dev.liferay.com/en/discover/portal/-/knowledge_base/6-2/export-import
but between different theme.
I don't know Liferay properly yet, I will study now the database and file structure maybe I can do it developing some script.
Hi Claudio,
Without having the theme (or being able to see it if it is on a live site) it's difficult to advise. What I can do is tell you how it SHOULD be done, but that might not be the way it has been implemented on your side.
Liferay use the onion layers approach. A page is not a html page with everything embedded in it, it is actually the result of multiple layers that come together that when assembled make up the page.
Each "page" you add can be conceptualized like this. The biggest outer box (or layer) is the Theme such that it is applied (or available anyway) to all the inner layers of the onion. Next you have the layout which designates the areas of the page where you can add items. Inside each of the sections you drop portlets -- which are like micro-applications that have been built to perform, normally, something specific.
Now, in your case, you have a new "Page" called About Us. On that page you assign a Layout -- lets set a 2-column layout with 75% widh on the left and 25% on the right. Inside the left side container of your layout you would want to render the text for the About Us. To do this (properly) you would add the Web Content Display portlet to that section and then configure the portlet to render a piece of structured content that you would either create on the fly when you are configuring the portlet, or that you have created in advance in the Control Panel > [your site] > Content > Web Content section.
.. now, if you have followed this approach, then you should be able to export all of this stuff and then import it into your new environment. Even better, if you get lucky and you upgrade works flawlessly, it'll "just be there" and all you have to do is make sure it still renders correctly.
Without having the theme (or being able to see it if it is on a live site) it's difficult to advise. What I can do is tell you how it SHOULD be done, but that might not be the way it has been implemented on your side.
Liferay use the onion layers approach. A page is not a html page with everything embedded in it, it is actually the result of multiple layers that come together that when assembled make up the page.
Each "page" you add can be conceptualized like this. The biggest outer box (or layer) is the Theme such that it is applied (or available anyway) to all the inner layers of the onion. Next you have the layout which designates the areas of the page where you can add items. Inside each of the sections you drop portlets -- which are like micro-applications that have been built to perform, normally, something specific.
Now, in your case, you have a new "Page" called About Us. On that page you assign a Layout -- lets set a 2-column layout with 75% widh on the left and 25% on the right. Inside the left side container of your layout you would want to render the text for the About Us. To do this (properly) you would add the Web Content Display portlet to that section and then configure the portlet to render a piece of structured content that you would either create on the fly when you are configuring the portlet, or that you have created in advance in the Control Panel > [your site] > Content > Web Content section.
.. now, if you have followed this approach, then you should be able to export all of this stuff and then import it into your new environment. Even better, if you get lucky and you upgrade works flawlessly, it'll "just be there" and all you have to do is make sure it still renders correctly.
Claudio Augusto De Paulo Resende, modified 6 Years ago.
New Member
Posts: 6
Join Date: 4/9/19
Recent Posts
Hi Andrew,
Thank you so much for this explanation it will be more than enough for me to follow ahead.
Kind regards,
Claudio Resende.
Thank you so much for this explanation it will be more than enough for me to follow ahead.
Kind regards,
Claudio Resende.
I'm with Olaf, -- I don't understand the meta data question either.
You will have to migrate your plugins to te 6.2 SDK/Maven of course. The theme will be a most painful process as there is A LOT that has changed between 6.0 and 6.2, including the introduction of Bootstrap.
If you are talking about migration of the theme, then I think there are tools out there for 6.0 -> 6.1 and then 6.1 -> 6.2 -- but it'd probably be easier to just re-write it.
You will have to migrate your plugins to te 6.2 SDK/Maven of course. The theme will be a most painful process as there is A LOT that has changed between 6.0 and 6.2, including the introduction of Bootstrap.
If you are talking about migration of the theme, then I think there are tools out there for 6.0 -> 6.1 and then 6.1 -> 6.2 -- but it'd probably be easier to just re-write it.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™