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

edit_url

Get the URL to edit the current page or entry in the Control Panel, if there is one (for example, there is no edit_url for a template route).

The user will need to login and have permissions, so it's probably best if used in conjunction with permissions checks.

<a href="{{ edit_url }}">Edit this page</a>
<a href="{{ $edit_url }}">Edit this page</a>
<a href="/cp/pages/edit/about-ye-old-me">Edit this page</a>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →