Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 507 Bytes

slug.md

File metadata and controls

24 lines (17 loc) · 507 Bytes

How to generate slugs (e.g. product urls)

Task: populate an url_slug field as a slug of the name attribute value.

Rules

actions:
    -
        type: set
        field: url_slug
        scope: web
        locale: en_GB
        expression: 'lowerCase(slug(value("name", "web", "en_GB")))'

Result

Field: url_slug

Before applying actions:

After applying actions:

ziggy-the-hydra