Skip to main content

INSERT_LIST

Insert a list of items into the document. The items can be provided as a list input or be generated from a text input (converted to a list using ProcessToList).

At a glance

  • Category Editor
  • Aliases CTX_INSERT_LIST
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional text or variable name to read the content (text) from the flowContext. If omitted, the step uses the default text input.NonefalsetrueNoneNone
containerElementContainer tag to use for the list (default 'ul').NonefalsefalseNoneNone
listItemElementList item tag to use for entries (default 'li').NonefalsefalseNoneNone
omitContainerWhen true, inserts items one-by-one instead of a full container.NonefalsefalseNoneNone
xpathXPath expression used when at is XPATH.NoneConditionalfalseNoneRequired when at = XPATH
atWhere to insert the list. Use CURSOR (default) or XPATH.NonefalsefalseNoneNone
positionPosition mode for insertion when using cursor (e.g. insertInline, insertBefore, insertAfter).insertInlinefalsefalseNoneNone
forceWriteWrite content even if the document is considered read-only.NonefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
listList of items to insert. If omitted, the step converts the text input to a list.Nonefalsefalse
textText content to convert to a list if no list input is provided.Nonefalsefalse

Examples

Insert list from text

- step: SET
text: "Item 1\\nItem 2\\nItem 3"

- step: INSERT_LIST
containerElement: "ol"
listItemElement: "li"

See Also

General Resources: