Help Center

Products
Resources
Security
Support
Sign In
  1. Liferay
  2. Liferay Portal 6.1 Admin Guide
  3. Using the Control Panel
  • Introduction to Using the Control Panel
  • Custom Fields
  • Monitoring
  • Plugins Configuration
  • Server Administration
  • Portal Instances
  • Plugins Installation
  • Summary

Custom Fields

Custom fields appear beneath Portal Settings in the Portal section of the control panel. Custom fields are a way to add attributes to many types of assets in the portal. For example, if you’re using Liferay Portal to create a site for rating books, you might assign the User object a custom field called Favorite Books. If you’re using the wiki for book reviews, you might add fields for Book Title and Book Author.

To add a custom field, click on the Custom Fields link in the control panel. Then choose a resource, click on the Edit link next to it and select Add Custom Field.

Figure 16

Figure 16.4: Custom Fields Resource List

From here you will need to add the custom field key. The key appears as the label for the field on the form. For some portal assets (like the User), custom fields are a separate section of the form. For others, as can be seen above, custom fields are integrated with the default fields on the form. Additionally, developers can access custom fields programatically through the <liferay-ui:custom-attribute /> tag.

Figure 16

Figure 16.5: Custom Fields Integrated with the Rest of the Fields on the Wiki Form

You can create fields of many different types: text fields (indexed or secret), integers, selection of multiple values and more. Once you’ve created a field, you cannot change its type.

« Introduction to Using the Control Panel Monitoring »
Was this article helpful?
0 out of 0 found this helpful

Resources

  • Downloads
  • Documentation
  • Activation Keys
  • LESA

Subscription

  • Contact Us
  • Account Support
  • Support FAQs

Related Sites

  • Liferay.com
  • Marketplace
© 2019 Liferay Inc. All Rights Reserved
English (US) Español 日本語 Português 简体中文