Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Book Image

Liferay 6.x Portal Enterprise Intranets Cookbook

Overview of this book

Table of Contents (19 chapters)
Liferay 6.x Portal Enterprise Intranets Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 the Add Structure permission in the Web Content section. To achieve this goal, go through the following steps:

  1. Log in as an administrator.

  2. Go to Admin | Site Administration | Content | Web Content.

  3. Click on the Manage option and choose Structures...