O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a new custom layout template

We now know what a layout template is about, what it does, and how to apply one of the Liferay's out-of-box custom layout templates on a portal page. It is time for us to create our own custom layout template.

Creation of layout templates is done in a similar manner to the creation of portlets and themes. It can be accomplished using the Liferay Plugins SDK.

Creating the skeleton of a layout template in Plugins SDK

There is a layouttpl folder inside the Liferay Plugins SDK where all new layout templates reside. The SDK provides a script file to create the skeleton of a new layout template. To create a new layout template, you run a command in this layouttpl folder similar to the one you use to create a new portlet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required