If you want to show the page title as heading on each page. Better would be to embed the page title in layout template. Following is the code snippet for getting the page name which needs to be added in the layout template.
In the portlet, Caching can be disabled by setting the following response headers :
Above response headers can be set using the renderResponse object or html tags. Following are the code snippet for the same.
When publishing the website in Liferay, it’s good practice to restrict access to admin urls outside the LAN. you can block the access to urls by adding the rewrite rules on the web-server. In my case, I am using the apache webserver and following are apache configurations for the same.
httpd.conf Continue reading
When we do the portlet development in the Liferay, each input field name and request parameters needs to be prefixed with the portlet namespace.
Portletnamespace prefix is used avoid the conflict, if multiple portlets are dropped on the same page. But if you want to make your portlet work without portlet namespace prefix, it can be done by setting the requires-namespaced-parameters to false in the liferay-portlet.xml file.
According to Security best practices, it good to turn off the portal and application server version information from the HTTP response header. By default, Liferay portal deployed on jBoss server shows the following information in the HTTP response header
Liferay-Portal:Liferay Portal Enterprise Edition X.X CE (Augustine / Build XXXX / Month DD, YYYY)
Following are the details for turning off these response headers.
If you are developing the custom login portlet some of the following Liferay portal properties needs to be overridden through the portal-ext.properties file depending on the requirement.
Liferay Named a Leader in the New 2014 Gartner Magic Quadrant for Horizontal Portals.