Skip to main content
Skip table of contents

Display Pattern: SEO Friendly Title

Summary

A slug is an SEO friendly title you use for images, videos, or complete press kits when sharing them on social media. Picturepark can create the slug for you using any value from any field, replacing spaces with dashes, and even pretending the correct domain. 

CODE
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: "picturepark.com/" }}
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: data.corporateLayer.domain }}

Setup in Picturepark

  • Layer: Corporate Layer

  • Fields

    • Title to use as a base for the slug

    • Domain field

Use Case

Use any values from a text field (accessed via fieldpath) and replace spaces with dashes. Then prepend a fixed value for domain or get the value from another field. 

Display Pattern

JSON
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: "picturepark.com/" }}
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: data.corporateLayer.domain }}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.