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.
{{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
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: "picturepark.com/" }}
{{data.corporateLayer.title.en | replace: " ", "-" | prepend: data.corporateLayer.domain }}