Configuring Web Content Structure Fields

You can edit web content structure fields and their properties:

  1. Open the Site Menu (Site Menu) and go to Content & DataWeb Content.

  2. Select the Structures tab.

  3. Click the name of the structure you want to modify.

    You can also open the Actions Menu (Actions icon) next to the structure and select Edit.

  4. Add, remove, or reorganize the fields in the structure.

  5. Select the field you want to configure. You can also perform other actions in the context menu.

  6. Once the sidebar expands, configure your desired settings for the selected field and Save the changes.

Configurable Settings

Important

Field settings depend on the type of field. A setting listed below may not apply for a field.

Type: The type of field placed in the definition. This is not editable but is available to reference from a web content template.

Field Label: The text to display above the field.

Show Label: Whether to show the Field label. The default value is Yes.

Required: Whether the user must fill the field to submit content using the web content structure. The default value is No.

Field Reference: The variable name used in web content templates for this field. You should enter a descriptive name. A default name is generated automatically.

Tip

Liferay DXP assigns a random field reference for each new field in the structure. Replace the default value with something more descriptive, so template developers can identify the field to place its data in a web content template or display page.

Help Text: Add a comment to help users understand the field label. The help text works as a subheading for your field to provide additional guidance.

Searchable: Whether to index the field for search. Index the whole text or just keywords.

Localizable: Whether the field can be localized in the user’s language. The default value is Yes.

Repeatable: Whether the user can duplicate the field while creating the web content. For example, you can have a repeatable author field so the user can duplicate it and enter a second author for an article. The default value is No. If set to Yes, users can click a + icon on the field to duplicate it while creating the web content.

Allow Multiple Selections: Whether the user can select multiple options. The default value is No.

Order Options Alphabetically: Whether the field’s options are ordered alphabetically. The default value is No.

Inline: Whether a select field has inline or block options displayed. The default value is Yes.

Options: The available options for a Select field or Radio field. You can add and remove options as well as edit each individual option’s display name (the name the user sees when creating the web content) and value (the value stored for the option, which can be retrieved in the web content template) pair.

Style: Optional CSS styles for the Separator field.

Structure Field Options

When you hover over a structure field and click Options (Options icon), these options appear in its context menu:

  • Duplicate: Duplicates the field and all its settings and iterates the Name to avoid conflicts.
  • Delete: Removes the field from the structure.

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy