Wellcome!

In Cms Howto you'll find updated tutorials to work with Alfresco, Liferay, and other cms software. In a world without information, Cms Howto is the solution.

Saturday, September 19, 2009

Creating a portlet clon in LifeRay

Some times we need a copy of a existing portlet, like navigation, breadcrumb, etc. We can do a copy of some portlet to instance it in the theme and have two different portlet configurations for the same type of portlet. This are the steps that we have to follow:

1. Edit liferay-display.xml and add a free id entry for that portlet.

2. Edit liferay-portlet.xml. We can copy the "..." of the origin portlet, and asign the free id of point 2.

3. Edit portlet-custom. We do the same of point 3.

4. Finally, we give a title to the portlet. Create a file in“/portal/WEB-INF/classes/content” called Language-ext_en_US.properties and add the line:
javax.portlet.title.FreeId=My_Clon_Portlet

Thursday, September 17, 2009

Expanding Alfresco JVM memory

When we launch for first time Alfresco Comunity 3.2, we get this warning:

Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB

We have to expand the JVM memory to solve it. Go to Alfresco install home and edit the alfresco.bat/alfresco.sh file , and modify the JAVA_OPTS like that:

Linux:
export JAVA_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server

  
Windows:
set JAVA_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server