Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the Schema edit page.

  2. Click on the help icon next to the schema editor to get the help window.

  3. On the help window, Click click on the field type you wish to add to the schema.

    For example, if you wish to add a text field to the schema, click on Text.

  4. Copy the schema field code from the pop-up window.

  5. Close the pop-up window and paste the copied content to the schema editor.

  6. Change the label and key (should be unique) properties to identify the field.

  7. Save the schema.

The code for the schema field typically contains the below-listed properties.

Code Block
 {
  "label": "Sample",
  "key": "sample",
  "isDefault": false,
  "validation": [
    {
      "required": false
    }
  ],
  "options": [],
  "multiple": false,
  "ref": "",
  "fieldType": "text",
  "type": "String"
  "es": "geo_point",
  "comment": "this is a comment"
}

...

Info

When creating a Content schema, the Experience Manager automatically creates the Title and Tags fields in your schema. These fields are mandatory.

The TTL(in days) is the time after which the documents created based on this schema will get removed after the specified time.

Example: Create a Visit Tracker

...