Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

is_external_url Modifier

Returns true if a string is an external URL.

google_url: http://google.com/
entry_url: /waffles
not_a_url: bacon
{{ if google_url | is_external_url }}
{{ if entry_url | is_external_url }}
{{ if not_a_url | is_external_url }}
@if (Statamic::modify($google_url)->isExternalUrl()->fetch()) ... @endif
@if (Statamic::modify($entry_url)->isExternalUrl()->fetch()) ... @endif
@if (Statamic::modify($not_a_url)->isExternalUrl()->fetch()) ... @endif
true
false
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →