I've Got a Pocketful of Widgets

Postified on March 12th, 2019

A dashboard is only as useful as its widgets. And a widget is only as useful as its contents. And its contents are up to you. Except one.

The Getting Started Widget

We're looking at ways to make the first-time Statamic experience more intuitive. One of those ways is through a new, default "getting started" widget which will point you to some important first steps in getting your site set up.

Widgets are now configured in PHP

Pop open config/statamic/cp.php and you'll have a number of configuration options, from default date format and locale, to start pages and widgets.

The above ☝️ dashboard is configured with the below 👇 configuration.

'widgets' => [
    [
        'type' => 'getting_started',
        'classes' => 'w-full'
    ],
    [
        'type' => 'header',
        'text' => 'Collection Widgets',
        'classes' => 'text-center'
    ],
    [
        'type' => 'collection',
        'collection' => 'blog',
        'limit' => 5,
        'width' => '50'
    ],
    [
        'type' => 'collection',
        'collection' => 'galleries',
        'limit' => 5,
        'width' => '50'
    ],
],

If you're concerned that this will make widgets less accessible and harder to change, don't worry. You will be able to override the default widgets on a per-user basis, using Preferences. More on that later. 😁

The widgets from Statamic 2 have made the jump to v3 and we're working on a few other new ideas for new ones too. Have any first-party widgets you'd like to see included by default? Let us know!

P.S. We'll be dropping down to one post per week. We're getting closer to launch, are laser focused on hitting our internal milestones, and need every little bit of time we can get. Plus, we're saving some of the best stuff for last. 😎

Jack McDade
Jack McDade, Creator of Statamic
Creator of Statamic

Copyright 2019 ⚔️ Statamic