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.

Sunday, February 21, 2010

Alfresco Search Portlet for Liferay

Most developers who have worked with Alfresco and Liferay have had the problem of having to integrate both applications.

 This integration has become progressively more complex, especially since both platforms are competing for some products increasingly similar, which means that they no longer be supported. Fortunately we have the APIs to program our own applications.

Alfresco Search Portlet uses the Alfresco web services api to do searches on the repository. Similarly, we may develop several portlets for exploiting other features of Alfresco api.

Below are two scren shots of the portlet in view and edit modes:


 The portlet uses a username and password to connect to alfresco and perform a search based on permissions for that user.

Finally, note that the portlet has been tested in the following environment:


Community Liferay 5.2.3 & 6.0, Alfresco 3.2 & 3.3, JDK 1.5 +.

Download Alfresco Search Portlet 

Pd: Have I been helpful? I'd be happy to receive your donations;)

Wednesday, December 2, 2009

Tuesday, November 24, 2009

Creating a webscript dashlet in Alfresco

To develop a custom dashlet in Alfresco we need 3 things:

- A Webscript.
- A Jsp.
- A Freemarker template.

1.- Firstly, create a webscript with the actions that you want to show in Alfresco Dashboard. WebScripts WikiPage.

For example:
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\my_webscript.ftl

2.- Create a Jsp for the dashlet in: \tomcat\webapps\alfresco\jsp\extension\dashboards\dashlets\my_webscript.jsp with this content:





3.- Add to web-client-config-custom.xml the next config:



Finally restart Alfresco and configure the dashboard to show your new dashlet.