<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1076951997366989355</id><updated>2024-10-04T22:15:30.739-04:00</updated><category term="alfresco"/><category term="liferay"/><category term="js"/><category term="jvm"/><category term="opencms"/><category term="portlet"/><category term="webservices"/><title type='text'>Cms How To</title><subtitle type='html'>Cms programming, LifeRay, Alfresco, OpenCms and much more.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-6641370767803205962</id><published>2010-02-21T08:06:00.019-05:00</published><updated>2010-05-17T04:50:28.986-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alfresco"/><category scheme="http://www.blogger.com/atom/ns#" term="liferay"/><category scheme="http://www.blogger.com/atom/ns#" term="portlet"/><category scheme="http://www.blogger.com/atom/ns#" term="webservices"/><title type='text'>Alfresco Search Portlet for Liferay</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Most developers who have worked with Alfresco and Liferay have had the problem of having to integrate both applications.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&amp;nbsp;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.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;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.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Below are two scren shots of the portlet in view and edit modes:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPsjyFYTZH2L677BHf-kec8eGboZE-0pgD9TY88FIIXXGkF__Zu4EGlPvRA8iA2s2sqM0hjOTKhvueUkKPwPkgmfwPMktKJhJQtzBdtKDVaSH2upakiSamF3vrz5eV4iP9NMGhkzEGm09/s1600-h/alfrescosearch2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPsjyFYTZH2L677BHf-kec8eGboZE-0pgD9TY88FIIXXGkF__Zu4EGlPvRA8iA2s2sqM0hjOTKhvueUkKPwPkgmfwPMktKJhJQtzBdtKDVaSH2upakiSamF3vrz5eV4iP9NMGhkzEGm09/s400/alfrescosearch2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgctyb5srC9Fo7dHX4GaaOu-Q1ecL7C1bFdTHvYk15r4fftT3WhPM1iDTblvRHmkOYJ2Y75pY96C3DRlhox8WxXm0EadMWbtMO3zrYhHyU-xfd1Erew0IHOdzAMjZ9L1ipadA9epeKjzOCW/s1600-h/alfrescosearch.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgctyb5srC9Fo7dHX4GaaOu-Q1ecL7C1bFdTHvYk15r4fftT3WhPM1iDTblvRHmkOYJ2Y75pY96C3DRlhox8WxXm0EadMWbtMO3zrYhHyU-xfd1Erew0IHOdzAMjZ9L1ipadA9epeKjzOCW/s400/alfrescosearch.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;br /&gt;
&amp;nbsp;The portlet uses a username and password to connect to alfresco and perform a search based on permissions for that user.&lt;br /&gt;
&lt;br /&gt;
Finally, note that the portlet has been tested in the following environment:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;Liferay community 5.2.3, Alfresco 3.2 y jdk 1.5+.&quot;&gt;Community Liferay 5.2.3 &amp;amp; 6.0, Alfresco 3.2 &amp;amp; 3.3, JDK 1.5 +.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;Liferay community 5.2.3, Alfresco 3.2 y jdk 1.5+.&quot;&gt;&lt;a href=&quot;http://sourceforge.net/projects/alfresco-search/&quot;&gt;Download Alfresco Search Portlet&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;Liferay community 5.2.3, Alfresco 3.2 y jdk 1.5+.&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;&quot;&gt;Pd: &lt;b&gt;Have I been helpful?&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;&quot;&gt;I&#39;d be happy to receive your donations;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://sourceforge.net/donate/index.php?group_id=306256&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Support This Project&quot; border=&quot;0&quot; height=&quot;32&quot; src=&quot;http://images.sourceforge.net/images/project-support.jpg&quot; width=&quot;88&quot; /&gt; &lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/6641370767803205962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2010/02/alfresco-search-portlet-for-liferay.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/6641370767803205962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/6641370767803205962'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2010/02/alfresco-search-portlet-for-liferay.html' title='Alfresco Search Portlet for Liferay'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPsjyFYTZH2L677BHf-kec8eGboZE-0pgD9TY88FIIXXGkF__Zu4EGlPvRA8iA2s2sqM0hjOTKhvueUkKPwPkgmfwPMktKJhJQtzBdtKDVaSH2upakiSamF3vrz5eV4iP9NMGhkzEGm09/s72-c/alfrescosearch2.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-286337505970701492</id><published>2009-12-02T04:52:00.002-05:00</published><updated>2009-12-02T05:04:01.455-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alfresco"/><category scheme="http://www.blogger.com/atom/ns#" term="liferay"/><category scheme="http://www.blogger.com/atom/ns#" term="opencms"/><title type='text'>OpenCms vs LifeRay vs Alfresco</title><content type='html'>No coments.&lt;br /&gt;
&lt;script src=&quot;http://www.gmodules.com/ig/ifr?url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fgoogle_insightsforsearch_interestovertime_searchterms.xml&amp;amp;up__property=empty&amp;amp;up__search_terms=opencms%7Cliferay%7Calfresco&amp;amp;up__location=empty&amp;amp;up__category=5&amp;amp;up__time_range=empty&amp;amp;up__compare_to_category=false&amp;amp;synd=ig&amp;amp;w=600&amp;amp;h=400&amp;amp;lang=en-GB&amp;amp;title=Google+Insights+for+Search&amp;amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;amp;output=js&quot; type=&quot;text/javascript&quot;&gt;
N
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/286337505970701492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/12/opencms-vs-liferay-vs-alfresco.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/286337505970701492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/286337505970701492'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/12/opencms-vs-liferay-vs-alfresco.html' title='OpenCms vs LifeRay vs Alfresco'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-309484050862354427</id><published>2009-11-24T10:18:00.006-05:00</published><updated>2009-11-24T11:00:05.185-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alfresco"/><title type='text'>Creating a webscript dashlet in Alfresco</title><content type='html'>To develop a custom dashlet in Alfresco we need 3 things:&lt;br /&gt;
&lt;br /&gt;
- A Webscript.&lt;br /&gt;
- A Jsp.&lt;br /&gt;
- A Freemarker template.&lt;br /&gt;
&lt;br /&gt;
1.- Firstly, create a webscript with the actions that you want to show in Alfresco Dashboard. &lt;a href=&quot;http://wiki.alfresco.com/wiki/Web_Scripts&quot;&gt;WebScripts WikiPage. &lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
For example:&lt;br /&gt;
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\my_webscript.ftl&lt;br /&gt;
&lt;br /&gt;
2.- Create a Jsp for the dashlet in: \tomcat\webapps\alfresco\jsp\extension\dashboards\dashlets\my_webscript.jsp with this content:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4uTiUJWq9zUf8o6mFDmLLu1SldEMnZK4Lq7bS7sRiSnKLv3Jp5uTMKq1B-z6BuGFheWtTEj2chhBiMNS56ATu-_wUJ5PmT8x5baqWm60vQctsP_gYboabTXIiFjMhrjMI2l7p3Q3Wgxwg/s1600/dashlet1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4uTiUJWq9zUf8o6mFDmLLu1SldEMnZK4Lq7bS7sRiSnKLv3Jp5uTMKq1B-z6BuGFheWtTEj2chhBiMNS56ATu-_wUJ5PmT8x5baqWm60vQctsP_gYboabTXIiFjMhrjMI2l7p3Q3Wgxwg/s640/dashlet1.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.- Add to web-client-config-custom.xml the next config:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-PSGCURSUiaq-6C6GtPMlRdVNbEJLJv_COo0xUpHBd7KFyVUav8DgqWSGqizVMtc4m5nj_FqK0uXXOOv91zwyEMePsaUKiJUJ2R9FxmgFkvOAMP_uM-iUM1JJOIuDjW4AkbiURfH-LpAw/s1600/dashlet2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-PSGCURSUiaq-6C6GtPMlRdVNbEJLJv_COo0xUpHBd7KFyVUav8DgqWSGqizVMtc4m5nj_FqK0uXXOOv91zwyEMePsaUKiJUJ2R9FxmgFkvOAMP_uM-iUM1JJOIuDjW4AkbiURfH-LpAw/s640/dashlet2.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;p style=&quot;clear:both&quot; &gt;Finally restart Alfresco and configure the dashboard to show your new dashlet.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/309484050862354427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/11/creating-webscript-dashlet-in-alfresco.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/309484050862354427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/309484050862354427'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/11/creating-webscript-dashlet-in-alfresco.html' title='Creating a webscript dashlet in Alfresco'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4uTiUJWq9zUf8o6mFDmLLu1SldEMnZK4Lq7bS7sRiSnKLv3Jp5uTMKq1B-z6BuGFheWtTEj2chhBiMNS56ATu-_wUJ5PmT8x5baqWm60vQctsP_gYboabTXIiFjMhrjMI2l7p3Q3Wgxwg/s72-c/dashlet1.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-5154455244871417290</id><published>2009-11-17T06:33:00.002-05:00</published><updated>2010-07-23T02:03:21.530-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="liferay"/><title type='text'>Changing the LifeRay context</title><content type='html'>In LifeRay we can found different types of urls, such as /c, /d, /theme, etc. It would be useful that all urls began by the same string, for example /portal. In that case we´ll have:&lt;br /&gt;
&lt;br /&gt;
/portal/c../&lt;br /&gt;
/portal/d../&lt;br /&gt;
/portal/theme../&lt;br /&gt;
&lt;br /&gt;
This allows Apache to handle easily the Liferay urls. To do that:&lt;br /&gt;
&lt;br /&gt;
1.- Firstly, shutdown LifeRay.&lt;br /&gt;
&lt;br /&gt;
2.- Edit portal-ext.properties, and add:&lt;br /&gt;
&lt;br /&gt;
portal.ctx=/portal&lt;br /&gt;
portlet.virtual.path=/portal&lt;br /&gt;
&lt;br /&gt;
3.- Rename the /ROOT folder to /portal in TOMCAT_HOME/webapps.&lt;br /&gt;
&lt;br /&gt;
4.- Rename &quot;tomcat-6.0.18/conf/Catalina/localhost/ROOT.xml&quot;&amp;nbsp; to &quot;tomcat-6.0.18/conf/Catalina/localhost/portal.xml&quot;.&lt;br /&gt;
&lt;br /&gt;
5.- Delete the content of the folders /temp and /work in TOMCAT_HOME (delete the tomcat cache).&lt;br /&gt;
&lt;br /&gt;
6.- Restart LifeRay.&lt;br /&gt;
&lt;br /&gt;
Probably we must redo the Lucene Index in LifeRay control panel. Finally we can go to the LifeRay home page at:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://localhost/portal&quot;&gt;http://localhost/portal&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/5154455244871417290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/11/changing-liferay-context.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/5154455244871417290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/5154455244871417290'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/11/changing-liferay-context.html' title='Changing the LifeRay context'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-7085413242462310108</id><published>2009-11-09T07:34:00.004-05:00</published><updated>2009-11-12T10:33:46.935-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alfresco"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><title type='text'>Api JavaScript samples in Alfresco</title><content type='html'>Alfresco allows us to perform actions when an event occurs, such as content creation, modification, and so on. Here are some examples of use:&lt;br /&gt;
&lt;br /&gt;
Js that sent mails:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt; // create mail action&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; var mail = actions.create(&quot;mail&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.parameters.to = &quot;user@mail.com&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.parameters.subject = &quot;News Letter Title&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.parameters.from = &quot;alfresco@society.com&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.parameters.template = search.findNode(&quot;workspace://SpacesStore/9c74d256-ff43-4437-rio5-3098c54fbc7a&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.parameters.text = &quot;Sorry, but the news letter is not available this week due to maintenance needs. Please apologize for disturbance&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; // execute action against a document&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; mail.execute(document);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Js that start and advanced pooled workflow:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; var workflow = actions.create(&quot;start-workflow&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; workflow.parameters.workflowName = &quot;jbpm$wf:reviewpooled&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; workflow.parameters[&quot;bpm:workflowDescription&quot;] = document.name;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; workflow.parameters[&quot;bpm:groupAssignee&quot;] = people.getGroup(&quot;GROUP_myGroup&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; var futureDate = new Date();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; futureDate.setDate(futureDate.getDate() + 7);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; workflow.parameters[&quot;bpm:workflowDueDate&quot;] = futureDate; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; workflow.execute(document);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Js that change the name of an inbound document: &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; // change the name of this document&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; document.properties.name = &quot;Backup of &quot; + document.properties.name;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; // add a new property string&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; document.properties[&quot;cm:locale&quot;] = mylocalenode;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; // save the property modifications&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; document.save();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;More examples here:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://wiki.alfresco.com/wiki/3.0_JavaScript_API&quot;&gt;Alfresco Js Api&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/7085413242462310108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/11/api-javascript-samples-in-alfresco.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/7085413242462310108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/7085413242462310108'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/11/api-javascript-samples-in-alfresco.html' title='Api JavaScript samples in Alfresco'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-3958757851793098689</id><published>2009-11-07T12:09:00.008-05:00</published><updated>2009-11-08T06:57:58.810-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="liferay"/><title type='text'>Adding portlets to a theme/layout</title><content type='html'>If we want to include some portlet in all the pages of our web, we must include it into a theme or layout file (.vm or .tpl).&lt;br /&gt;
&lt;br /&gt;
For example, it would be useful to have a breadcrumb portlet in the layout and not have to manually include it on every page. Even we could establish a default configuration.&lt;br /&gt;
&lt;br /&gt;
Other portlets which should be included on the theme could be the language portlet, content search, navigation, etc. &lt;br /&gt;
&lt;br /&gt;
The following examples show how to add a language portlet, to do that we have two posibilities:&lt;br /&gt;
&lt;br /&gt;
a) Adding the portlet to portal_normal.vm with the xml configuration:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha3J7Vc7sFsDKca9J7HOOZNLEqM6c8gHzA3woxncd1azCMIp1-peKYMJLHTR2gWQXthhium17DcxEa41dqLGr4_J0V8ySj0BJrB3wnrVBpySMSU2F4w9V4-O7YNkI3bjvyybTXebmkpvl/s1600-h/Captura.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha3J7Vc7sFsDKca9J7HOOZNLEqM6c8gHzA3woxncd1azCMIp1-peKYMJLHTR2gWQXthhium17DcxEa41dqLGr4_J0V8ySj0BJrB3wnrVBpySMSU2F4w9V4-O7YNkI3bjvyybTXebmkpvl/s640/Captura.PNG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
b) Adding the portlet to a hidden page, configure it and instance his portlet-id from portal_normal.vm:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF37mU9PWrv_Lnf8i28deoZXsXkjEJstVO389e13cNj-U_yLdW6cTfXBvgsIJ3NO2dQ11GrnsHNbjNsaDCO5mpjBHY_st79DUBI-d8lYMlpP7mJk8vBrwky122A0gMWvNmXPPAtHGPcGeJ/s1600-h/Captura2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF37mU9PWrv_Lnf8i28deoZXsXkjEJstVO389e13cNj-U_yLdW6cTfXBvgsIJ3NO2dQ11GrnsHNbjNsaDCO5mpjBHY_st79DUBI-d8lYMlpP7mJk8vBrwky122A0gMWvNmXPPAtHGPcGeJ/s640/Captura2.PNG&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF37mU9PWrv_Lnf8i28deoZXsXkjEJstVO389e13cNj-U_yLdW6cTfXBvgsIJ3NO2dQ11GrnsHNbjNsaDCO5mpjBHY_st79DUBI-d8lYMlpP7mJk8vBrwky122A0gMWvNmXPPAtHGPcGeJ/s1600-h/Captura2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/3958757851793098689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/11/adding-portlets-to-themelayout.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/3958757851793098689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/3958757851793098689'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/11/adding-portlets-to-themelayout.html' title='Adding portlets to a theme/layout'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha3J7Vc7sFsDKca9J7HOOZNLEqM6c8gHzA3woxncd1azCMIp1-peKYMJLHTR2gWQXthhium17DcxEa41dqLGr4_J0V8ySj0BJrB3wnrVBpySMSU2F4w9V4-O7YNkI3bjvyybTXebmkpvl/s72-c/Captura.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-5464751954189254892</id><published>2009-09-19T11:55:00.001-04:00</published><updated>2009-09-19T11:56:43.536-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="liferay"/><title type='text'>Creating a portlet clon in LifeRay</title><content type='html'>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:&lt;br /&gt;
&lt;br /&gt;
1. Edit liferay-display.xml and add a free id entry for that portlet.&lt;br /&gt;
&lt;br /&gt;
2. Edit liferay-portlet.xml. We can copy the &quot;&lt;portlet&gt;...&lt;/portlet&gt;&quot; of the origin portlet, and asign the free id of point 2.&lt;br /&gt;
&lt;br /&gt;
3. Edit portlet-custom. We do the same of point 3.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
javax.portlet.title.FreeId=My_Clon_Portlet</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/5464751954189254892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/09/creating-portlet-clon-in-liferay.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/5464751954189254892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/5464751954189254892'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/09/creating-portlet-clon-in-liferay.html' title='Creating a portlet clon in LifeRay'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1076951997366989355.post-342312826481575598</id><published>2009-09-17T08:12:00.004-04:00</published><updated>2009-09-19T06:17:41.446-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="alfresco"/><category scheme="http://www.blogger.com/atom/ns#" term="jvm"/><title type='text'>Expanding Alfresco JVM memory</title><content type='html'>When we launch for first time Alfresco Comunity 3.2, we get this warning:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB&lt;/span&gt;&lt;/i&gt; &lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
Linux:&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;export JAVA_OPTS=&#39;-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;Windows:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;set JAVA_OPTS=&#39;-Xms256m -Xmx1024m -XX:MaxPermSize=512m -server&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt; letter-spacing: 0.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://cms-howto.blogspot.com/feeds/342312826481575598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cms-howto.blogspot.com/2009/09/expanding-alfresco-jvm-memory.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/342312826481575598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1076951997366989355/posts/default/342312826481575598'/><link rel='alternate' type='text/html' href='http://cms-howto.blogspot.com/2009/09/expanding-alfresco-jvm-memory.html' title='Expanding Alfresco JVM memory'/><author><name>Cms Master</name><uri>http://www.blogger.com/profile/04232508002255255982</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>