Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

offset Modifier

Offsets the items returned in an array.

playlist:
- Emancipator
- Gong Gong
- Possom Posse
- Justin Bieber

Use with the pipe syntax to continue chaining in a single tag like so:

{{ playlist | offset(1) | join }}
{{ Statamic::modify($playlist)->offset(1)->join() }}
Gong Gong, Possom Posse, Justin Bieber

Or using the parameter syntax:

{{ playlist | offset(1) }}
<li>{{ value }}</li>
{{ /playlist }}
@foreach (Statamic::modify($playlist)->offset(1)->fetch() as $value)
<li>{{ $valuie }}</li>
@endforeach
<li>Gong Gong</li>
<li>Possom Posse</li>
<li>Justin Bieber</li>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →