riasvdv / statamic-collection-groups

Group your collections into separate groups
3 stars 1 forks source link

Latest Version

Collection Groups

Collection Groups for Statamic 3.

Group your collections into separate groups, this also removes the collections from the "Collections" nav item

Installation

Require it using Composer.

composer require rias/statamic-collection-groups

Publish the configuration file

php artisan vendor:publish --provider="Rias\CollectionGroups\ServiceProvider"

The config file will be in config/statamic/collection-groups.php.

You can create groups by providing an array in the config file:

<?php
return [
    'Group 1 label' => [
        'collection_handle_1',
        'collection_handle_2',
    ],
    'Group 2 label' => [
        'collection_handle_3',
        'collection_handle_4',
    ]
];

Brought to you by Rias