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:
Log in as an administrator.
Go to Admin | Site Administration | Content | Web Content.
Click on the Manage option and choose Structures...