I've set up friendly URL routing for my Liferay portlet, and it's working fine when I generate URLs with the standard JSP tags like so:
which, given my mapping, produces a lovely URL like:
But when I generate URLs using the JavaScript PortletURL module, I get the full unfriendly URL. For instance:
will generate
So the question is: How can I generate friendly URLs from JavaScript?
Solution : Here is the Hack - Just give it a try
then write javascript and replace param values like this -
And you have your friendly url ....
Your are just done, Try & Enjoy the function.....:)
|
Monday, 9 April 2012
Unable to create friendly url mapping with javascript in Liferay
Tuesday, 3 April 2012
How to migrate existing data and configure to use image.hook.impl or dl.hook.impl in Liferay
Sometimes we have to change the File storage Location through HOOK IMPL to Database or File System.
In that scenario we also have to migrate existing data which is already stored through previous HOOK.
Here is the solution -
1) Go to Document library/image gallery,click Export/import option on the top of rightside of the portlet,
click 'export' button for export the content & save the lar.
2) Stop the server and add "image.hook.impl=com.liferay.portal.image.FileSystemHook" in portal-ext properties
& comment the "#image.hook.impl=com.liferay.portal.image.DatabaseHook" in portal-ext properties.
3) Clear the database cache from serverAdministration and delete work temp folders in tomcat.
4) Start the server, Go to Document library/image gallery and 'import' the lar file.
Please let me know if you have any questions.
Your are just done, Try & Enjoy the function.....:)
In that scenario we also have to migrate existing data which is already stored through previous HOOK.
Here is the solution -
1) Go to Document library/image gallery,click Export/import option on the top of rightside of the portlet,
click 'export' button for export the content & save the lar.
2) Stop the server and add "image.hook.impl=com.liferay.portal.image.FileSystemHook" in portal-ext properties
& comment the "#image.hook.impl=com.liferay.portal.image.DatabaseHook" in portal-ext properties.
3) Clear the database cache from serverAdministration and delete work temp folders in tomcat.
4) Start the server, Go to Document library/image gallery and 'import' the lar file.
Please let me know if you have any questions.
Your are just done, Try & Enjoy the function.....:)
Subscribe to:
Posts (Atom)