Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

url Modifier

Get the URL of an Asset, Page, Entry, or Taxonomy term from an ID.

hero_image: 98hf98-sfq4h8f94-fd9s0fj0l
{{ hero_image | url }}
{{ Statamic::modify($hero_image)->url() }}
/assets/flying-bacon-wearing-a-batman-mask.jpg
Hot Tip!

If your field is defined in a Blueprint, Statamic would have already used augmentation to convert the ID to an object. You can access the URL like so:

{{ hero_image:url }}

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →