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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Liferay Beginner's Guide

You're reading from   Liferay Beginner's Guide Quick and easy techniques to build, deploy, and maintain your own Liferay portal with this book and ebook

Arrow left icon
Product type Paperback
Published in Dec 2011
Publisher
ISBN-13 9781849517003
Length 396 pages
Edition Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Planning Your Portal FREE CHAPTER 2. Installing a Liferay Portal Instance 3. Understanding Portal Basics and Theming 4. Tips and Tricks-Advanced Configuration 5. Building your First Liferay Site 6. Managing Pages, Users, and Permissions 7. Creating and Publishing Content 8. Exploring Communities 9. Setting up an Online Shop 10. Liferay Server Administration PayPal Test Account Configuration
Pop Quiz Answers 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...

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