aceUIContentSelect

The aceUIContentSelect widget allows the user to manage a selection of referenced content. Content can be added by using the paste button or by using the search field. Ordering of the content in the selection can be managed by the user by 'drag and drop'.

Image

Requirements

Data is requested in the _defaults/aceUISearch.variant variant.

Configuration

Attribute Description Default
"placeholder" string

A placeholder text shown if no text has been entered.
""
"maxSize" number

Maximum number of entries allowed in the list. Value 1 is enforced if the backed field type is not a list. A value of -1 means no limit.
-1
"allowedTypes" Array

A list of allowed content types in the list. Applies to both contents that can be added using the paste button and using the search field. If not configured, all types are allowed.
preventParentRecursion boolean

Prevents selecting content that would create a loop in the content hierarchy if set as parent for the field.
false

Localization

This widget has localization support.

Localizable configuration properties: placeholder.

The language / locale used by the third-party library used (Select2) will be the same as that used by other parts of the ACE UI application.

Expected domain objects

This widget expects a single domain object either of type string (for single value fields) or of type LIST:: (for lists).

Example template json

{
  "label": "Top Image",
  "widget": "aceUIContentSelect",

  "config": {
    "placeholder": "Type to search...",
    "allowedTypes": ["imageContent"]
  },

  "domainObject": "article/imageRef"
}