Slugify
Slugify (slugify)
Section titled “Slugify (slugify)”Generate stable slugs from one or more fields.
Transform json
Minimal example
Section titled “Minimal example”actions: - slugify: {}JSON
{ "actions": [ { "slugify": {} } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Fields
Section titled “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
Section titled “Schema”Case Options
Section titled “Case Options”| Value | Aliases | Name | Description |
|---|---|---|---|
lower |
lower | ||
upper |
upper | ||
title |
title | ||
preserve |
preserve |
Collision Strategy Options
Section titled “Collision Strategy Options”| Value | Aliases | Name | Description |
|---|---|---|---|
error |
error | ||
append-counter |
append-counter | ||
append-hash |
append-hash |