Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor


Excerpt

The SplitTransformation can split text (strings) based on any character or value e.g. take the original file name and split underline or dash to then use the output in a JoinByTransformation and concatenate the filename parts with a space.  


Tip

Input: "picturepark-pim-dam-platform.pdf"

SplitTransformation: 

  • separators: "-", "_" , "."
  • keepEmpty: null
  • trim: null

Output: picturepark pim dam platform pdf


Tip

Input: "title that is written into the title field" 

SplitTransformation: 

  • separators: " "
  • keepEmpty: null
  • trim: yes
  • followed by a JoinByTransformation: join by "-"

Output: title-that-is-written-into-the-title-field (a slug you can use for publishing online)

Specific Definitions

Select the condition.

PropertyValue
kind

SplitTransformation

separators

Separators to use, supports variables, an array of strings including escape sequences or null to split on any white space character.

keepEmptyKeeps empty items. Empty items will be returned as empty strings.
trimTrims each entry for punctuation and white space.


Code Block
"transformationGroups": [
	{
		"kind": "TransformationGroup",
		"inputs": [
			"basicInformation.title.x-default"
		],
		"transformations": [
		{
		"kind": "SplitTransformation",
		"separators": " ",
		"trim": true
		}
		],
		"storeIn": "slugOutput"
	}
]

...