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

sites

A collection containing all the configured sites as Statamic\Sites\Site objects which you can loop over using a tag pair.

// config/statamic/sites.php
 
'sites' => [
'english' => [
'name' => 'English Site',
'locale' => 'en_US',
'url' => 'http://mysite.com/',
'direction' => 'ltr',
'attributes' => [
'foo' => 'bar',
]
],
'french' => [
'name' => 'French Site',
'locale' => 'en_FR',
'url' => 'http://mysite.com.fr/',
'direction' => 'ltr',
'attributes' => [
'foo' => 'baz',
]
]
]
{{ sites }}
{{ handle }}
{{ name }}
{{ locale }}
{{ short_locale }}
{{ url }}
{{ direction }}
{{ attributes }}
{{ foo }}
{{ /attributes }}
 
{{ /sites }}
english
English Site
en_US
en
http://mysite.com/
ltr
bar
 
french
French Site
fr_FR
fr
http://mysite.com.fr/
ltr
baz
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →
Hello there! Are you looking for the Statamic v2 documentation?