Slugify
Slugify (slugify)
Generate stable slugs from one or more fields.
Transform json
Minimal example
actions: - slugify: {}JSON
{ "actions": [ { "slugify": {} } ]}Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
description | string | describe this step. | |
condition | lua-expression (string) | Only run this action if the specified condition is met. Examples: 2 * count() | |
source-fields | string[] | Ordered list of fields whose values will be concatenated. | |
output-field | field (string) | Field that receives the resulting slug (defaults to ‘slug’). Examples: data_field | |
separator | string | String inserted between tokens (defaults to ’-’). | |
case | Case | Case transformation applied before slugification. Allowed values: lower, upper, title, preserve | |
max-length | number (integer) | Maximum slug length; longer slugs are truncated. Examples: 42, 1.2e-10 | |
stop-words | string[] | Tokens removed before slugification (case-insensitive). | |
collision-strategy | Collision Strategy | Strategy used when the slug collides with an existing value. Allowed values: error, append-counter, append-hash |
Schema
Case Options
| Value | Description |
|---|---|
lower | Lower |
upper | Upper |
title | Title |
preserve | Preserve |
Collision Strategy Options
| Value | Description |
|---|---|
error | Error |
append-counter | Append Counter |
append-hash | Append Hash |