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 structure

Liferay gives users interesting features: structures and templates. Structures provide information about possible fields in our content, and templates are responsible for rendering these fields as an article in a frontend (for instance, in the Asset Publisher or Web Content Display portlet).

Let's assume that our goal is to define a new structure and template called Internal publication. This structure consists of the following fields:

Name

Type

Required

Repeatable

Author

Text

Yes

No

Department

Select

Yes

No

Project

Text Box

No

No

Client

Text

Yes

No

Content

HTML

No

No

Attachment

Documents and Media

No

Yes

How to do it…

In order to define a new structure, it is required that you log in as a user ...

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