Nuxeo Server

How to Add Complex Fields on Your Document Type

Updated: March 18, 2024

Nuxeo Studio enables you to create your own document types, with their associated metadata. Metadata can be simple text fields, dates, text areas, etc. They can also be more complex with several related informations. A typical example would be a "Sender" metadata, that would be composed of four pieces of information: The sender's last name, his/her first name, the company and the company's logo.

Let's see how this metadata is defined.

Step 1: Defining a Complex Field in Your Document Type Schema

  1. On your document type Schema tab, add a field and select the type Complex.
    An Edit link is displayed next to the Type drop-down list.
  2. Click on the Edit link to define the subfields that compose the complex metadata.
  3. Add the different subfields and select their type.
  4. Click on Save. The Schema is displayed. You can see a summary of your complex type definition below its name.

Step 2: Using the Complex Field on the Document Type Layouts

  1. Compose your layout. The cell in which you dropped the complex field has an additional icon .
  2. Click on the icon to edit the complex field presentation and parameters. Typically, you can choose between two presentations:
    • table: subfields are presented on top of each other,
    • inline: subfields are displayed one after the other on the same line.
  3. Click on the icon to edit the subfields widgets.
  4. Edit each sub-field widget and click on Save.
    Modifications are saved.