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

Enabling page versioning


Page versioning works only if staging is enabled. This functionality has two main advantages:

  • Allows users to work in a parallel way on a different version of the page

  • Keeps a history of the page and gives users a backup point

How to do it…

Enabling page versioning is a simple process. Perform the following steps:

  1. Login as an administrator, go to Admin | Site Administration | Configuration and open the Staging tab.

  2. Select Enabled On Public Pages in the Versioning section.

  3. Confirm by clicking on the Save button.

  4. After enabling versioning, the dockbar should present the following information:

How it works…

Working with page versioning is similar to working with code repositories such as Git or Subversion. This mechanism is connected with all sites (LayoutSet) and with specific pages (Layout). This means that it is possible to version the entire site or a single page. Moreover, Liferay provides a feature to branch changes. This functionality will be useful if a user wants to...