Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

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 →