Markup Coding Tip

Never place tags like <html> and <body> in your view markup (JSP, PHP, etc). Its the job of the portlet container to aggregate the final html code for all portlets and to pass that to the portal for rendering. So, using those tags can result in Done, with Errors on Page messages by your browser.

 

Posted in General by Jeff Robinson. Comments Off

Extending javascript in the Ext environment

The extension environment can also be used to replace existing Liferay javascripts. Just recreate the directory structure where the original javascript resides under the extension folder. Liferay will substitute your scripts for its own when its needed during runtime.

Posted in General by Jeff Robinson. Comments Off

LoginAction vs. Login Portlet

Liferay comes packaged with two login mechanisms: the login action in portal.impl’s com.liferay.portal.action.LoginAction and the login portlet in com.liferay.portlet.login.

You should extend the portlet if you want to customize your own login portlet.You can extend the portal login using the new Liferay Hooks feature or the extension environment.

Posted in General by Jeff Robinson. Comments Off