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

Defining application display templates for Asset Publisher


Since Liferay Version 6.2 is the available option, it allows us to set a new display template for Asset Publisher. In real-world applications, it is quite a useful and powerful tool that helps define custom display templates for assets, such as journal article, blog entry, message board, and so on. For example, you may want to display only an asset's descriptions or add selected categories and tags.

Let's assume that we have a use case that describes Asset Publisher view requirements as follows:

  • Display title

  • Display description

  • Display selected tags and categories

  • Display asset links

  • Display Read more link

How to do it…

In order to define a new display template, log in as an administrator and follow these steps:

  1. Log in as an administrator. Go to Admin | Configuration and choose Application Display Templates from the left menu.

  2. Click on the Add button and choose Asset Publisher Template.

  3. Fill in the form by typing Name with the Intranet template...