Liferay Beginner's Guide

More Information
  • Set up and run Liferay portal in an application server of your choice and configure with MySQL Database
  • Apply a theme to portal pages and change their layouts
  • Create communities, organizations and User groups
  • Add users, create portal pages and apply permissions
  • Create web content and publish content on portal pages
  • Build community pages using out of box and custom portlets
  • Set up social collaboration applications in the portal
  • Configure and run an online store

Liferay portal is a leading horizontal portal product, written in Java. It has the power to provide the intranets and extranets of large corporations. Liferay will allow you to build your company’s portal quickly, efficiently, and in a custom way to suit the needs of your corporation.

Liferay Beginner’s Guide will show you how to set up your own site from scratch. Most books assume that you have knowledge of portals before working with Liferay and so include more theory than practice. However, only enthusiasm is required for reading this book as the step-by-step instructions, which follow the creation of a sample community site, will make it easy to install and configure Liferay, set up a Liferay portal instance, and use the out-of-the-box portlets of Liferay.

By following the logical flow of the chapters and the creation of the sample site, you will set up your Liferay site in several quick and easy stages. You will start by installing Liferay in your application server or servlet container of choice. You will learn how to customize the look and feel of the portal, change the URL of the site and create your own communities and organizations within the portal, then add users to them. By the end of the book, you will have a fully operational Liferay portal and the confidence to maintain and customize it to meet your needs.

  • Detailed steps for installing Liferay portal and getting it running, for people with no prior experience of building portals
  • Follow the example of building a neighbourhood site with pre-installed portlets and custom portlets
  • Create your own communities, organizations and user groups, and learn how to add users to them
Page Count 396
Course Length 11 hours 52 minutes
ISBN 9781849517003
Date Of Publication 1 Dec 2011
What is Liferay Portal?
Time for action – browsing sites based on Liferay Portal
Time for action – comparing Yahoo! and YouTube
Time for action – finding the source code of Liferay Portal
Liferay Portal architecture
Main Liferay Portal features
Time for action – watching Liferay Portal portlets in action
Preparation for Liferay Portal installation
Time for action – finding RAM information
Time for action – installing JDK
Time for action – installing MySQL database server
Time for action – installing OpenOffice
Time for action – starting OpenOffice service
Time for action – checking the OpenOffice service
Getting started
Liferay with Apache Tomcat
Time for action – deploying on Tomcat
Liferay with JBoss Application Server
Time for action – deploying on JBoss AS
Liferay with GlassFish
Time for action – deploying in GlassFish
Liferay with Oracle WebLogic
Time for action – configuring Weblogic
Configuring Oracle WebLogic
Deploying Liferay on WebLogic
Liferay on existing Tomcat
Time for action – deploying Liferay
Database configuration
Time for action – creating the database
Time for action – changing the file
Understanding a portal
Navigating Liferay
Time for action – signing in to Liferay Portal
Time for action – creating a new page and adding a portlet
Time for action – accessing a portal with a normal user account
Getting an overview of Liferay Portal Architecture
Basics of the Control Panel
Time for action – creating a new user
Changing Portal's look and feel with themes
Time for action – installing a new theme and applying it to the portal
Renaming our portal
Time for action – changing our portal name
SSO with OpenID
Time for action – using OpenID for authentication
Ask users to accept terms before accessing Liferay
Time for action – enabling Terms of Use
Time for action – changing Terms of Use
E-mail notifications
Time for action – enable notification for account creation
Adding custom attributes for User
Time for action – giving the option to add a user's favorite sport
OpenOffice integration
Time for action – enabling OpenOffice integration
Changing the hostname
Time for action – changing our portal name
Mail server
Time for action – enabling the mail server
Designing the site – painting the full picture
Knowing the portal requirements
Organizing users in an organization and a community
Time for action – creating organization for CIGNEX Neighborhood
Time for action – understanding actions associated with the organization
Time for action – creating a community for CIGNEX Neighborhood
Time for action – understanding actions associated with the community
User groups—arbitrary collection of users
Time for action – adding a user group to CIGNEX Neighborhood
Time for action – understanding the actions associated with the group
Time for action – creating a page template for the Bowlers user group
Creating pages for the Neighborhood site
Time for action – creating pages for Neighborhood communities
Time for action – providing a HTML title and friendly URL for a page
Exploring the User section
Time for action – creating a user and assigning an administrator role
Time for action – modifying user details
Time for action – assigning a user to communities and organizations
Disabling the option to register for the site for guest users
Time for action – disabling the Register option for a guest user
Exploring role/permission management in Liferay
Time for action – creating a role to manage pages
Time for action – assigning community/organization Administrator role
Time for action – defining permissions for a bookmark entry
Content management preview
Uploading images
Time for action – uploading an image file
Creating web content
Time for action –adding content to the welcome page
Time for action – creating a structure
Time for action – creating a template
Time for action – creating template-based content
Time for action –migrating static content from an existing site using the web content portlet
Displaying web content
Time for action – adding content to the Welcome page
Time for action – selling houses online
Time for action – populating the registration page
Uploading documents
Time for action – uploading a video file
Time for action – uploading a PDF file
Showing a PDF file link in web content
Time for action – embedding a link for a PDF file
Enabling comments for web content
Time for action – enabling comments for content
Disclosing decrypted Congress documents
Time for action – displaying documents
Managing content
Time for action – using the web content list portlet
Time for action – adding the asset publisher portlet
Converting web content to formatted files
Time for action – adding a file conversion feature
Setting up an online game using Flash Portlet
Time for action – setting up an online game using Flash Portlet
Adding Web Content Display to announce a cricket match
Time for action – announcing a cricket match
Using Video Portlet to share Neighborhood videos
Time for action – sharing Neighborhood videos
Sharing Neighborhood photos using Image Gallery
Time for action – sharing Neighborhood photos
Exploring chat functionality to enable chat between Neighborhood members
Time for action – exploring chat functionality
Integrating Open Social Gadgets in Neighborhood site
Time for action – integrating Open Social Gadgets
Creating bookmark of useful links using Bookmark Portlet
Time for action – creating bookmarks of useful links
Conducting polls in the Neighborhood site using Polls Portlet
Time for action – creating bookmarks of useful links
Changing language of Neighborhood site using Language Portlet
Time for action – changing language using Language Portlet
Displaying breaking news as a carousel on the Neighborhood site
Time for action – displaying breaking news as a carousel
Defining a search on the Neighborhood site
Time for action – searching all content
Time for action – searching for Web Content
Getting started with online store setup
Online shop configuration
Time for action – configuring an online shop page
Time for action – configuring tax rate and currency
Time for action – configuring payment through PayPal
Time for action – installing a plugin to provide PayPal Sandbox environment support
Time for action – configuring the shipping cost
Time for action – configuring the insurance cost
Time for action – configuring the e-mail templates
Shopping items
Time for action – item category creation
Time for action – item creation
Shopping cart
Time for action – adding items to the shopping cart
Checkout process
Time for action – making a payment
Order management
Time for action – processing the order
Promotion offers
Time for action – promoting offers
Getting started with server administration
Monitoring and managing server resources
Time for action – monitoring and controlling Liferay resources
Managing log levels
Time for action – configuring the log levels
Time for action – changing log levels permanently
Managing file upload size and types
Time for action – configuring document library file settings
Monitoring portal sessions
Time for action – monitoring live user sessions
Configuring multiple portals on the same Liferay server
Time for action – configuring another portal instance
Virtual hosting of communities and organizations
Time for action – virtual host configuration
Implementing the staging environment
Time for action – configuring staging environments
Time for action – scheduling publication of portal changes


Robert Chen

He started implementing Spring MVC portlets in Liferay 4.3.1 in Februray 2008. He has four years experience with Liferay portal technology. He has worked on 14 projects that use the Liferay portal framework. His positions have been Liferay developer, senior consultant and project architect. He is familiar with technologies used in Liferay including Hibernate, Spring, Ehcache, Struts, JSF, ICEfaces and Vaadin API. He has implemented web service and configured websites using the latest version of Liferay portal.

Sandeep Nair

Sandeep Nair has more than 11 years of experience of Java and Java EE technologies. His keen interest is in developing enterprise solutions using the Liferay platform, and he has been doing so for the past 9 years. He has executed projects using Liferay across various verticals, providing solutions for collaboration, enterprise content management, and web content management systems. He is also experienced with Java and Java EE. He has authored Liferay Beginner’s Guide and Instant Liferay Portal 6 Starter. Travel, food, and books are his passions, besides coding.

Samir Bhatt

Samir Bhatt is an Enterprise Architect with over 12 years of IT experience. He has been working on Liferay-Portal-based solutions for the last four years. He has co-authored a book, Liferay Beginner's Guide by Packt Publishing. He is also a Liferay certified trainer and has delivered public and private training across the world. Samir leads an architectural group at CIGNEX Datamatics. He extensively worked on performance tuning of Liferay-Portal-based solutions. Apart from Liferay Portal, Samir has also worked on many other technologies and frameworks including Hadoop, MongoDB, Pentaho BI, Oracle, Java Swing, ICEfaces, ZK, Spring, Hibernate, and Visual Basic.

Samir is also a very good speaker and has delivered various webinars on Liferay, Pentaho BI, and MongoDB. He blogs at

Mahipalsinh Rana

His stint with portal server technologies started in 2006 when he started working with Sun Portal Server 7.2. Later Sun became technology partner of Liferay for development in 5.2.x and he was part of that team. He has looked after Internationalization (I18n) across various modules. For the last two years he has acted as Liferay Technical Architect and led around 10 projects. He has also enjoyed doing Liferay training from time to time being a certified trainer from Liferay. He likes exploring other technologies like Spring , REST API and Internationalization (I18n).

Gaurav Barot

Gaurav Barot is an experienced software architect and PMP-certified project manager with more than 12 years of experience. He has a unique combination of experience in enterprise resource planning, sales, education, and technology. He has served as an enterprise architect and project leader in projects in various domains, including healthcare, risk, insurance, media, and so on for customers in the UK, USA, Singapore, and India.

Gaurav holds a bachelor's degree in IT engineering from Sardar Patel University, and has completed his post graduation in IT from Deakin University Melbourne.