Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay 6.x Portal Enterprise Intranets Cookbook

You're reading from   Liferay 6.x Portal Enterprise Intranets Cookbook Over 60 hands-on recipes to help you efficiently create complex and highly personalized enterprise intranet solutions with Liferay Portal 6.x CE

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781782164289
Length 300 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Installation and Basic Configuration 2. Authentication and Registration Process FREE CHAPTER 3. Working with a Liferay User / User Group / Organization 4. Liferay Site Configuration 5. Roles and Permissions 6. Documents and Media in Liferay 7. Working with Content 8. Search and Content Presentation Tools 9. Liferay Workflow Capability 10. Collaboration Tools 11. Quick Tricks and Advanced Knowledge 12. Basic Performance Tuning Index

The Liferay setup wizard and first login

After successfully running Liferay on the Apache Tomcat server, the system asks users to fill some necessary information to complete the setup wizard. This is only a single screen with basic fields, such as administrator name or portal name.

How to do it…

After running Liferay for the first time, the Liferay platform displays the basic configuration form, which looks like this:

How to do it…

To finish installation, it is necessary to fill in the preceding form as follows:

  1. Provide details about Portal:
    • Portal Name: This is the name of the website, for instance, Enterprise Intranets
    • Default Language: This helps in choosing the default language of the portal
    • Add Sample Date: This decides to populate the portal with default data
  2. Provide details about Administrator User:
    • First Name and Last Name
    • E-mail address
  3. Choose the database engine (optional). In the previous recipe, we set properties with a MySql connection.
  4. Confirm the form.
  5. Click on the Go to My Portal button.
  6. Click on the I agree button on the Terms of Use screen.
  7. Fill in the Password Reminder form and confirm the form.

    After confirming the Password Reminder form, you will be able to see and use the main Liferay navigation tools.

Follow these steps to navigate to Control Panel:

  1. Click on the Admin button located on the dockbar menu.
  2. Click on the Control Panel link.

How it works…

After running Liferay for the first time, Liferay needs basic information about the portal, database, and administrator. The database connection was set in portal-ext.properties, and it was described in the previous recipe.

All data which was provided on the portal wizard was stored in the ${liferay.home}/portal-setup-wizard.properties file. The most important settings are described in the following table:

Property name

Description

admin.email.from.name

This describes the name of the administrator.

admin.email.from.address

This is the e-mail address of the administrator.

liferay.home

This is the path to the ${liferay.home} directory. This property is very important and must be set.

setup.wizard.enabled

This flag disables the setup wizard.

After logging in, the user is able to see navigation tools available for authorized users only. Here are the navigation tools:

  • The dockbar menu is located under the top screen edge. The dockbar consist of three buttons:
    • The Admin button that allows us to navigate to the Site Administration and Control Panel sections
    • The My Sites button that lists links to sites that the user is a member of
    • The button with user name and surname that allows us to navigate to user's profile (My Profile), user's dashboard (My Dashboard), user's account (My Account), and also allows the user to log out
  • The fast edition menu is located near the left edge of the screen. The menu consists of the following icons:
    • The Add icon that allows us to add a new page, a new application to the page, or new content
    • The Edit icon that allows us to edit the settings of the currently viewed page
    • The Preview icon that allows us to view the currently viewed page in different resolutions and devices
    • The Edit Controls icon that allows us to hide or show controls of portlets

There's more…

In internal projects such as intranets, user accounts most often are created and managed in external systems, for instance, LDAP. Therefore, it is unnecessary (and sometimes even unacceptable) to allow users to manage their authentication data (for instance, to set a password-reminder query) or ask them to agree to terms of use directly within Liferay. In Liferay, there are many properties that can help customize the first login action, a few of which are as follows:

Property name

Description

terms.of.use.required=false

This turns off the terms of use

terms.of.use.journal.article.group.id and terms.of.use.journal.article.id

This specifies the group ID and article ID that will be displayed as the terms of use

users.reminder.queries.enabled=false

This disables the reminder query functionality

See also

  • For information on adding new users and defining roles and permissions, refer to the Adding a new user recipe in Chapter 3, Working with Liferay User / User Group / Organization
  • Creating and configuring roles and Assigning user roles recipes in Chapter 5, Roles and Permissions
  • For information on the default login page, refer to the Overriding the default login page with the administrator defined page recipe in Chapter 2, Authentication and Registration Process
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image