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

Collection Widget Tag

Display a list of entries from a collection.

collection.png Fieldtype UI
Behold! The Collection Widget!

Configuring

Widgets can be added to the dashboard by modifying the widgets array in the config/statamic/cp.php file.

// config/statamic/cp.php
 
'widgets' => [
'getting_started',
[
'type' => 'collection',
'collection' => 'blog',
'limit' => 10,
],
],

Options

collection

string
required

The collection's handle.

width

int

Width of dashboard area as a percentage. Accepts 25, 33, 50, 66, 75 and 100.

sites

array

Determines the sites in which this widget should be displayed.

limit

int

Limit number of entries. Default: 5.

sort

string

Sort and order by field name. E.g. 'title:desc'. Defaults to the collection's settings.

fields

array

An array of field handles to be displayed as columns in the widget.

title

string

The title of the widget. Defaults to the collection name.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →