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

The basic structure of a layout template

By now, we know what a layout can do in a portal page presentation. To better understand the layout and its structure, we are going to use one of Liferay's out-of-box layout templates as an example before we actually start working on our own custom layout template.

Let's take a look at the following highlighted lines in:

${PORTAL_ROOT_HOME}/WEB-INF/liferay-layout-templates.xml

<?xml version="1.0"?>
<!DOCTYPE layout-templates PUBLIC "-//Liferay//DTD Layout Templates 6.0.0//EN" "http://www.liferay.com/dtd/liferay-layout-templates_6_0_0.dtd">
<layout-templates>
// ignore details
</layout-templates>

As you can see, this XML file starts with a XML version and includes a DTD for the Layout Templates' parameters ...

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