Chapter 8. Adding Layout Template

The pages of Liferay Portal are organized according to the layout templates used. Seven different layout templates are provided with the option for users to write and add new ones. This section will provide instructions for adding a sample layout template.

  1. Begin by logging in as the Administrator.

  2. To see a list of layout templates that comes prepackaged with Liferay Portal, click Add Content.

  3. Click on the Template drop down menu. Seven templates are available.

  4. To add an additional template, go to Liferay’s download page located at http://www.liferay.com/web/guest/downloads.

  5. Click on Liferay Samples.

  6. The sample layout template that will be added contains a 2-1-2 layout. The first row contains two columns of portlets, the second row contains one column of portlets, and the third row contains two columns of portlets. Click on the Sample Layout Template.

  7. Select a location to download from and Save the file.

  8. After the file has been saved, log back in as the Administrator.

  9. In the Admin portlet, click Auto Deploy.

  10. Click Browse to locate the file, and click Deploy.

  11. To verify that the new template has been added, click on Add Content.

  12. Click on the Template drop down menu. The 2-1-2 layout template will appear in the list.