Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
blady blade (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed May 12, 2021
1 parent 2a9fd83 commit 8abac01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ Use the same params as the `{{ collection }}` tag
```

#### Collection Pagination
```blade
@collection('the_collection', ['limit' => 2, 'paginate' => true])
@foreach($entry['entries'] as $entry)
@data($entry)
Title: {{ $title }}
@enddata
@endforeach
@endcollection

```
### Data

Use this when you have Statamic data but it's a `Value` object. This will return a keyed array with all the fields as string/ints/arrays (recursively).
Expand Down

0 comments on commit 8abac01

Please sign in to comment.