google.com, pub-5747754088801811, DIRECT, f08c47fec0942fa0 Skip to main content

Posts

Showing posts with the label liferay

Get Portlet Id from the Database

Get Portlet Id from the database liferay. We can easily get the portlet Id from the database with the below query on portlet table, SELECT * FROM portlet;

Disable cache content of browser access on back button after logout liferay dxp

Some time we have requirement where we do not want to allow back button after logout and show cached browser content. Liferay provide properties which with we are able to restrict to see content on back button after logout. If user click back button after logout it will show the login page. We require to provide below properties in portal-ext.properties. Restart the server once applying below properties browser.cache.signed.in.disabled=true

Start open office in linux through command for liferay

Some time liferay not generate preview and not allow conversion from word to pdf etc. The reason can be it is not started with root access. Please fire below command to start soffice with the root access. First Kill the soffice proccess. pkill -9 soffice Execute below command to run it sudo soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

Gmail Configuration Liferay Through ext properties file

Put below property in portal-ext.properties file. mail.session.mail.transport.protocol=smtp mail.session.mail.smtp.host=smtp.gmail.com mail.session.mail.smtp.password= mail.session.mail.smtp.user= mail.session.mail.smtp.port=465 mail.session.mail.smtp.auth=true mail.session.mail.smtp.starttls.enable=true mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory Provide your Gmail account mail and Password in above properties. Restart the liferay server. Some time google not allow to use above configuration in that case go to below url https://www.google.com/settings/security/lesssecureapps Click on Turn On Checkbox.

Workflow on custom portlet

 In certain situation we require workflow in our custom portlet. We will see next what is the procedure for workflow on custom portlet. Find below full source code for workflow on custom portlet. It will show only approved feedback in list of it. SOURCE CODE You can find more detail below http://www.cignex.com/articles/applying-advanced-workflow-custom-assets-liferay-6 http://stackoverflow.com/questions/17853340/kaleo-workflow-in-custom-portlet/26729873#26729873 http://liferayzone.wordpress.com/2013/11/29/kaleo-workflow-configuration-for-custom-portlet-in-liferay-6-1/

Liferay interview questions

What is Liferay Portal? In General a web portal represents a web application that provides a single point of access to variety of information. Functionality of a portal can extend very easily by creating custom applications that can run inside a portal.   These applications are called portlet.   For running portlet we require application server that can run a portlet container spec (JSR168 or JSR286).   There are dozens of free and enterprise portal products available.   Liferay portal is an open source portal. Below are benefits of it. 1.       Content management system. 2.       Workflow 3.       Social networking 4.       Easy integration with LDAP, Alfresco, Solr, CAS etc. 5.       Inbuilt available portlet related with News, Finance, Social, Workflow etc. 6.       Compatible with differe...