WoodWing Help Center

Supported Drupal fields for use in Publish Form templates in Enterprise 10

Supported Drupal fields for use in Publish Form templates in Enterprise 10

When setting up Drupal content types for use as Publish Form templates in Enterprise, the content type fields need to adhere to specific rules. The rules for each field are listed below.

Note: When your Drupal content type contains fields that do not adhere to these rules, these fields are not imported and a difference exists between the content type in Drupal and the Publish Form template in Enterprise.


Autocomplete term widget (tagging)

Drupal field type:

Term Reference
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Autocomplete term widget (tagging)

Enterprise Widget type:

Multi string

Cardinality:

Must be unlimited.
Example:

The field is used for displaying tags provided by a suggestion service, and for providing the auto-complete feature for adding tags. SeeAbout adding tags to Web articles.

Suggested tags are displayed to the right of the input field:

Suggested tags in a Publish Form

The auto-complete feature is displayed in the input field:

When typing a single character, the auto-complete feature shows all tags containing that character


Boolean (single on/off check box)

Drupal field type:

Boolean
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Single on/off check box

Enterprise Widget type:

Boolean

Cardinality:

Must be 1.

Remarks:

The field may only have one value, which must be set on the property. Note that in Drupal specific labels can be specified for the on/off field. These will not be represented in Enterprise (it will exist as a true/false representation).

Boolean (check box / radio buttons)

Drupal field type:

Boolean
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Check box / radio buttons

Enterprise Widget type:

List

Cardinality:

Must be 1.

Remarks:

The field may only have one value. If a default value is set, this value is also included in the import.

Date

Note: The use of a Date field requires the Date Module to be installed and enabled in Drupal.

Drupal field type:

Date
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text field / Select list

Enterprise Widget type:

datetime

Cardinality:

Must be 1.

Remarks:

The displayed date is automatically shown in the time zone that is configured for the Drupal site.


Date (ISO format)

Note: The use of a Date field requires the Date Module to be installed and enabled in Drupal.

Drupal field type:

Date (ISO format)
Availability: Available in Drupal 7, not available in Drupal 8.

Drupal Widget type:

Text field / Select list

Enterprise Widget type:

datetime

Cardinality:

Must be 1.

Date (Unix Timestamp)

Note: The use of a Date field requires the Date Module to be installed and enabled in Drupal.

Drupal field type:

Date (Unix timestamp)

Drupal Widget type:

Text field / Select list

Enterprise Widget type:

datetime

Cardinality:

Must be 1.

Decimal

Drupal field type:

Decimal
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text field

Enterprise Widget type:

Double

Cardinality:

Must be 1.

Remarks:

The field may only have one value. If the field has a minimum value, maximum value or default value set, then these values are also included in the import. If no minimum value or maximum value are set then these will be determined automatically based on the precision and scale settings of the Drupal field.

Double

Drupal field type:

Number (float)
Availability: Available in Drupal 8, not in Drupal 7.

Drupal Widget type:

Number field

Enterprise Widget type:

Double

Cardinality:

Must be 1.

Remarks:

Minimum value: If set then the value is also included in the import. If not set then the maximum value is defined as -99999999.99.

Maximum value: If set then the value is also included in the import. If not set then the maximum value is defined as 99999999.99.


Dynamic entity reference - Autocomplete

Drupal field type:

Dynamic entity reference
Availability: Available in Drupal 8 (from Enterprise Server 10.1.2 onwards)

Drupal Widget type:

Autocomplete

Enterprise Widget type:

Multistring

Cardinality:

1 or more.

Remarks:

If the field has a default value set, then this value is also included in the import . If there are multiple default values selected, only the first one is imported.

Entity reference - Autocomplete

Drupal field type:

Entity reference
Availability: Available in Drupal 8 (from Enterprise Server 10.1.2 onwards)

Drupal Widget type:

Autocomplete

Enterprise Widget type:

Multistring

Cardinality:

1 or more.

Remarks:

If the field has a default value set, then this value is also included in the import . If there are multiple default values selected, only the first one is imported.

File

Drupal field type:

File
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

File

Enterprise Widget type:

File selector

Cardinality:

May be any.
Sub widget:

For each added file, the following is displayed in a separate window:

  • Name
  • Format (read-only)
  • Include file in display (Requires 'Enable Display field' option to be set in Drupal)
  • Description (Requires 'Enable Description field' option to be set in Drupal)

Remarks:

The field may contain multiple files. If the field has a format filter or maximum size set, then these values are also included in the import.

The following file types can be added:

  • Archive
  • Article
  • Audio
  • Hyperlink
  • Image
  • Layout
  • Other
  • Presentation
  • Spreadsheet
  • Video
Example:

When maximum files is limited to one:

The file field in a Publish Form without a file added:

A file field with no file added

The file field in a Publish Form with a file added; the sub widget is shown to the right of the file:

A file field with a file added

When multiple files are allowed:

The file field in a Publish Form without files added:

The image field with no images added

The file field in a Publish Form with multiple files added:

The image field with images added

A sub widget for an image, displayed in a separate window:

The sub widget of an image field


Float

Drupal field type:

Float
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text field

Enterprise Widget type:

Double

Cardinality:

Must be 1.

Remarks:

The field may only have one value.

Minimum value: If set then the value is also included in the import. If not set then the maximum value is defined as -99999999.99.

Maximum value: If set then the value is also included in the import. If not set then the maximum value is defined as 99999999.99.


Image

Drupal field type:

Image

Drupal Widget type:

Image
Availability: Available in Drupal 7 and Drupal 8.

Enterprise Widget type:

File selector

Cardinality:

May be any.
Sub widget:

For each added file, the following is displayed in a separate window:

  • Name
  • Format (read-only)
  • Width (read-only)
  • Height (read-only)
  • Alternate text (Requires 'Enable Alt field' option to be set in Drupal)
  • Title (Requires 'Enable Title field' option to be set in Drupal)

Remarks:

The field may contain multiple files. If the field has a format filter, minimum resolution, maximum resolution,or maximum size set, then these values are also included in the import.
Example:

When maximum files is limited to one:

The image field in a Publish Form without an image added:

A file field with no file added

The image field in a Publish Form with an image added; the sub widget is shown to the right of the file:

The single image file field

When multiple files are allowed:

The image field in a Publish Form without images added:

The image field with no images added

The image field in a Publish Form with multiple images added:

The image field with images added

A sub widget for an image, displayed in a separate window:

The sub widget of an image field


Integer

Drupal field type:

Integer
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text field

Enterprise Widget type:

Integer

Cardinality:

Must be 1.

Remarks:

The field may only have one value.

Minimum value: If set then the value is also included in the import. If not set then the maximum value is defined as -999999999.

Maximum value: If set then the value is also included in the import. If not set then the maximum value is defined as 2147483647.


List (float / integer / text) - Radio buttons

Drupal field type:

List (float), List (integer) or List (text)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Radio buttons

Enterprise Widget type:

List or Multilist

Cardinality:

List: must be 1. Multilist: may be more than 1.

Remarks:

If the cardinality is 1 then a List is created, if the cardinality is greater than 1 a Multilist is created.

If a default value is set, this value is also included in the import. If a key-value pair is used, then Enterprise only uses the value. Valuelist: the selectable values need to be represented in Enterprise.


List (float / integer / text) - Select List

Drupal field type:

List (float), List (integer) or List (text)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Select list

Enterprise Widget type:

List or Multilist

Cardinality:

List: must be 1. Multilist: may be more than 1.

Remarks:

If the cardinality is 1 then a List is created, if the cardinality is greater than 1 a Multilist is created.

If the field has a default value set, then this value is also included in the import. (labels are used instead of keys). Valuelist: the selectable values need to be represented in Enterprise.


List (multilist)

Drupal field type:

List (Float) or List (Integer) or List (text)
Availability: Available in Drupal 8, not in Drupal 7.

Drupal Widget type:

options_select

Enterprise Widget type:

List or MultiList

Cardinality:

Cardinality = 1 (List) or Cardinality > 1 (MultiList )

Remarks:

When the Cardinality is greater than 1 (for example: 3), only the first 3 values selected will be respected by Drupal 8, the others will be ignored.

Note that in Content Station, users are allowed to select many values (more than what is set in the cardinality) in a MultiSelect box. In the above example, only the most top 3 values will be shown in Drupal 8.


Long text and summary (Plain text)

Drupal field type:

Long text and summary (Plain text setting)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text area (multiple rows)

Enterprise Widget type:

Multiline. Two fields are added: one for entering the text for the summary and one for entering the body text (the long text) of the story. (In order for the Summary field to appear, the option "Summary input" needs to be selected in the Drupal field settings.)

The summary field can be identified by the term (Summary) that is added after the field name.

Cardinality:

Must be 1.

Remarks:

When the "Text processing" option of the field is set to "Plain text", the fields are added as multi-line fields.

The field may only have one value. If the field has a default value set, then this value is also included in the import.

Example: The summary can for instance be used for displaying a short introduction about a story on the Home page, while the full body text is the content of the actual story.

Long text and summary (Filtered text)

Drupal field type:

Long text and summary (Filtered text setting)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text area (multiple rows)

Enterprise Widget type:

Article component

Cardinality:

Must be 1.

Remarks:

Multiline. Two fields are added: one for entering the text for the summary and one for entering the body text (the long text) of the story. (In order for the Summary field to appear, the option "Summary input" needs to be selected in the Drupal field settings.)

When the "Text processing" option of the field is set to "Filtered text", the fields are added as article components:

Summary fields as article components

The field may only have one value.

Example: The summary can for instance be used for displaying a short introduction about a story on the Home page, while the full body text is the content of the actual story.

Long text (Filtered text)

Drupal field type:

Long text (Filtered text setting)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text area (multiple rows)

Enterprise Widget type:

Article component

Cardinality:

Must be 1.

Remarks:

The field may only have one value.


Long text (Plain text)

Drupal field type:

Long text (Plain text setting)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text area (multiple rows)

Enterprise Widget type:

Multiline

Cardinality:

Must be 1.

Remarks:

The field may only have one value. If the field has a default value set, then this value is also included in the import.


Term reference - Select list, radio buttons or check boxes

Drupal field type:

Term reference
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Select List, radio buttons or check boxes

Enterprise Widget type:

List or Multilist

Cardinality:

List: must be 1. Multilist: may be more than 1.

Remarks:

If the cardinality is 1 then a List is created, if the cardinality is greater than 1 a Multilist is created.

If the field has a default value set, then this value is also included in the import. If there are multiple default values selected, only the first one is imported


Term reference - Taxonomy autocomplete

Drupal field type:

Term reference
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Taxonomy autocomplete

Enterprise Widget type:

Multistring

Cardinality:

Multistring: 1 or more.

Remarks:

If the field has a default value set, then this value is also included in the import . If there are multiple default values selected, only the first one is imported.


Text (Filtered)

Drupal field type:

Text (Filtered text setting)
Availability: Available in Drupal 7, not available in Drupal 8.

Drupal Widget type:

Text field

Enterprise Widget type:

Article component

Cardinality:

Must be 1.

Remarks:

The field may only have one value.


Text (Plain text)

Drupal field type:

Text (Plain text setting)
Availability: Available in Drupal 7 and Drupal 8.

Drupal Widget type:

Text field

Enterprise Widget type:

String

Cardinality:

Must be 1.

Remarks:

The field may only have one value. If the field has a maximum value or a default value set, then these values are also included in the import.

Document history

  • 27 March 2017: Added Entity reference - Autocomplete
  • 27 March 2017: Added Dynamic entity reference - Autocomplete
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.