I have a portlet bundle as a war in Liferay 6.2. We are planning to convert it into module as per the Liferay 7. So we have the change of Portlet name and hence Id.
Now we would like to run the upgrade process which will take care below scenarios
Updating Portlet Preferences with new Portlet Id
Updating Layouts to consider new Portlet Id
Updating ResourceAction table to consider new Portlet Id
I have undergone few dev.liferay.com but couldn't fine proper guide to do the same. I followed 6.2 approach by creating the Upgrade class by extending UpgradeProcess class and then overriding the threshold values. However, it doesn't work for me.
Could you please help me with this Upgrade scenario?
Regards,
Suyash Bhalekar
Related
I'm new to liferay.
I imported a big lar into my liferay instance but, for the moment, have none of the required portlets : there are a lot of portlets in the project I'm joining.
Currently, I have the site structure, but the pages display the message that the portlet is not here (logical).
For comprehension purposes, I wanted to build my portlets one after the other, on the need, to see them appear by the grace of liferay ;-)
But for that I wanted to know which portlet is missing.
This thread : How can i find - which portlets are deployed on which pages in Liferay 6.1? explain how to achieve this through the DB.
Is there really no built-in solution to do it through the liferay interface? Have we really to hack in the DB to get the info or install plugin?
Thanks!
In your browser console, Liferay.Portlet.list contains all portlets in the page.
This value is generated by themeDisplay.getLayoutTypePortlet().getAllPortlets() on the server.
As an alternative you can also look at the HTML code of the page and look for elements with the class portlet-boundary. For example this belongs to an instance of the Journal Content Portlet (Portlet name 56):
<div class="portlet-boundary portlet-boundary_56_ portlet-static portlet-static-end portlet-borderless portlet-journal-content full-screen" id="p_p_id_56_INSTANCE_WdRdMGe86kDa_">
I have been reading the liferay documentation about migrating from liferay 6 to liferay 7 (https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/from-liferay-6-to-liferay-7).
I have a basic liferay 6.1.2 application bundle with tomcat that contains a few portlets and all I need is to make it work the same way, without using any new feature (OSGI and all) with liferay 7.
Do you know where I could find a list of new configuration files and a list of the ones that have been deleted?
Is there a place where I can find the new dependencies required by liferay 7 for each of my portlets?
I used the liferay tool to generate the new theme so that's a start...
Any links or advices would be appreciated,
Thanks
EDIT :
I can start liferay 7 with the portlet inside the /deploy. I get no errors, only info like "portlet1.war does not have a WEB-INF/liferay-plugin-package.xml or liferay-plugin-package.properties."
The localhost_host_access.log show a few 404 but not as an error...
I really dont know how to proceed to have information (errors, logs,....) to make this work : my portal is still empty.
You can follow the upgrade procedure (read through the link you've provided) and it should be able to
upgrade your database
upgrade parts of your code
If you are using Liferay IDE or Developer Studio there is code migration wizard. It will not solve all issues but will examine your code and advise you how to change things it can not change itself. This recording in an year old but it will give you an idea of what IDE does (probably more by now). It uses a database of breaking changes, most of which is published here so you can check what is relevant to you.
I do not recommend you do that. First migrates from 6.1 to 6.2 and after 6.2 to 7 or you can redo the entire portal, from Liferay we do not recommend making such low migrations. I recommend you look at the community and OSGI ...
I am working on liferay 6.2, I created a site but this basic liferay UI is not looking good.
Can anyone tell be how to create a better UI in liferay.
I want to create a more appealing user interface with liferay.
You can create your own custom theme.You can go through liferay theme creation documents.
Also you can get many ready-made themes from liferay marketplace.
If you are using Liferay SDK, Eclipse or Liferay Developer Studio. You can create your own theme and here is the guideline:
https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-a-the-4
Setting in liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties:
journal.structure.force.autogenerate.id=false
journal.template.force.autogenerate.id=false
used to enable YOU editing structure and template id.
This DOES NOT work anymore in liferay 6.2
Using liferay 5.x (and I've read on the web about liferay 6.1) was fine.
Does anybody know how to do this again?
It seems that there is a fix implemented for this in Liferay 6.2 EE. I am experiencing the same problem on Liferay 6.2 CE though. Hopefully I will be able to solve it.
The fix is discussed in the following Liferay Issue: https://issues.liferay.com/browse/LPS-48441. You can follow it as a possible direction to get the solution.
Regards.
EDIT: If you want to "avoid the patching" of this issue, you could use the Scripting Console from the Control Panel and change the structures or templates ids running a script. You can get it from my response in the Liferay thread in here:
Structures and Templates Ids autogeneration not working - Liferay 6.2 CE GA2
Structure-Template of Journal Article got changes in Liferay 6.2 version.
dynamic.data.mapping.structure.force.autogenerate.id=false
dynamic.data.mapping.template.force.autogenerate.key=true
are the new properties for having structure-id and template-id as editable.
As the title states, i'm trying to convert these Vignette portlets into Liferay portlets.
Is there any documentation on this anywhere? I've searched the entire Internet
-When trying to deploy my WARs right off the bat, I'm getting a "missing liferay.plugin.packet.xml" which tells me the entire portlet must be reconfigured to work with Liferay.
-Running Liferay 6.1.1 ga2 on Web Logic 12c server
Cheers!
You mean "liferay-plugin-package.xml", don't you?
You will find such a file in the source of Liferay at /portal-web/docroot/WEB-INF/liferay-plugin-package.xml. For other examples just download sources from other Portlets (Github or Liferay-Marketplace).
Besides some other values, this file defines how Liferay should handle your war (layout-template, portlet, theme).
EDIT: As the marketplace does not allow (plz see the comment in: liferay-plugin-package_6_1_0.dtd) portlets having an liferay-plugin-package.xml, I would recommend to use the corresponding properties file.
Reference file (in the portal sources): /definitions/liferay-plugin-package_6_1_0.properties