Liferay.com

Friday, July 18, 2014

Useful portal properties

########### you can hide Openid, Create Account,Forgot Password links by setting below properties in portal-ext.propeties. ###########
##
## Company
##
company.security.send.password=false

company.security.login.form.autocomplete=false

company.security.send.password.reset.link=false

company.security.strangers=false

company.security.strangers.verify=false

##
## OpenID
##

open.id.auth.enabled=false


Set below property to false in portal-ext.properties file if your liferay application server has concurrency issues with deploying large WARs.
auto.deploy.unpack.war=false


########### You can hide Liferay Version by adding below property in portal-ext.properties file ###########
# to hide Liferay Version
http.header.version.verbosity=partial


##  Steps to Change Liferay Context path:
##  Step 1: go to {liferay.home}\conf\Catalina\localhost\ROOT.xml
##  Rename ROOT.xml to required name. Eg. if you want context as portal then you have to rename ROOT.xml as portal.xml
##  Step 2: open portal.xml edit as below.
##   
##  Step 3: Add following property in portal-ext.properties
##  portal.ctx=/portal 

##  Done, restart your server. then access your server using : localhost:8080/portal

P.S. some properties are compiled by gather from online resources

Saturday, July 12, 2014

How to change maximize & minize icon in 6.2

There was a peculiar use case I ran into when i am working on a project.

Portlet icons needs to be changed in following scenarios
1) default maximize icon
2) icon we have with portlet once maximized
3) icon we have with portlet once minimized

Here is the CSS code snippet for the same.
/*to change icono f maximize to icon-resize-full*/
.aui .icon-plus:before {
    content: "\f065";
}
/* to change icon next to Restore when portlet minimized to icon-plus*/
.aui .icon-resize-vertical:before{
 content: "\f067";
}

Hope it helps somebody - Cheers :)

Wednesday, July 2, 2014

VelocityVariables.java in 6.2

Liferay 6.2 prior versions we used to have VelocityVariables.java, this has been changed in 6.2.


This is changed across into different files

VelocityTemplateContextHelper

TemplateContextHelper