Uncategorized
Make your control panel custom portlet visible per site
Lets us assume we want to have an admin portlet in the content area in our site. We can do this by adding the following xml elements in the liferay-portlet.xml
Getting the preview URL of a File Entry
If you are working in a custom portlet and with FileEntries, it is very likely that you will need the preview url of this file, to use it in your UI.
If we have a web content and we want to update the index of it we can do that with the following code:
Getting the model hints in the code
While trying to make a custom validator in a form, there was the need to reuse the information set in the portlet-model-hints.xml file. You can do this by using the following Util class:
Liferay Kaleo workflows: How to get rid of no-reply@liferay.com
When a kaleo workflow in Liferay 6.2 sends an email, it adds automatically as the sender the email no-reply@liferay.com. If you want to change that, you can't...
Don't null the modified date in web contents
It seems that, at least liferay EE 6.1ga1, doesn’t like the null value in the field modified date.
Log the render time of the portlets on a page
Here is an interesting post about logging the render time of all portlets on a
How to show the configuration of a portlet in the control panel
Create a config.jsp and in the portlet.xml insert the following (in the portlet section):
You can visit this link and have a look at all the liferay presentations of the past.
How to remove the console from the portlets
Just use the following property: javascript.log.enabled=false
How to get rid of the @override errors in ant build
Go to your SDK and edit the build.${username}.properties and change the properties
Have you troubles run your GWT project in Safari in Mac OS X? Can't you find the GWT plugin? Try Omniweb.
Disabling phone number detection in iphone phonegap apps
Recently I found out that in a phone gap app for iPhone a number of a shipment in the UI got a link out of nowhere.
Can't find index.html in android app using phonegap
I 've experienced a strange situation, while trying to make my phonegap application run in the android emulator.
Liferay diaries: Changing virtual host for a community backup
Once in a while one has to replicate an entire Liferay installation locally.
Liferay diaries: Multiple spring form controllers in a portlet
Now there comes a moment in the life of every portlet author, be it a seasoned veteran (like jstam) or a fresh starter like myself when you need to do implement something out of the ordinary for wh
Liferay diaries: Help! My form post parameters are empty!
While hacking a Spring & Liferay prototype, I'm suddenly wondering about why during a form submission there are no parameters (not even empty or null) submitted by the form.