Book Image

Liferay Beginner's Guide

Book Image

Liferay Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
PayPal Test Account Configuration
Index

Time for action – giving the option to add a user's favorite sport


Our Cignex neighbourhood members are fanatic sport fans, and they want an option to add their favorite sport. Let us see how we can do this:

  1. Log in as portal admin, and navigate to Control Panel.

  2. Click on the Custom Fields option from the left-hand side, which will bring up the following screenshot:

  3. Click on the User link, which will bring you to the screenshot shown as follows:

  4. Click on the Add Custom Field button, which will give you a screen to add your custom field attribute, as shown in the following screenshot:

  5. Give the value of Key as sport. Next, there is a Type, wherein you can select whether you want text, selection box, or text box. Leave the selection of Type as Text Field – Indexed. Click on Save, which will result in the following screenshot, notifying that the custom field sport is added for User, as follows:

  6. Now, let us see how a user can enter the value for the newly created custom attribute. Click on the My Account...