Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Liferay Beginner's Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Liferay Beginner's Guide

Liferay Beginner's Guide

3.8 (5)
close
close
Liferay Beginner's Guide

Liferay Beginner's Guide

3.8 (5)

Overview of this book

Table of Contents (19 chapters)
close
close
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...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY