O'Reilly logo

Liferay 6.x Portal Enterprise Intranets Cookbook by Katarzyna Ziółkowska, Piotr Filipowicz

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 template

This recipe requires basic programming skills. In general, a template is a pattern to render values from an article with a specific structure. In accordance with this fact, a template is relative to the structure, so a structure and template are a pair of definitions that can't exist alone. Structures define how the form looks; templates determine how the journal article will be rendered and arranged.

Getting ready…

Prepare a structure called Internal publication. To see how to achieve this, refer to the previous recipe.

Let's assume that our template is divided into four parts:

  • Metadata definition that contains Author and Department
  • Metric definition with Client and Project information
  • Description part with Content
  • Attachments ...

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