Sample data installer addon for Cockpit CMS
- Automatically import sample data on Cockpit CMS install
Download latest release and extract to COCKPIT_PATH/addons/SampleData
directory
git clone https://github.com/Raruto/cockpit-sample-data.git ./addons/SampleData
php ./cp install/addon --name SampleData --url https://github.com/Raruto/cockpit-sample-data.git
-
Make sure path to cockpit addons is defined in your projects' composer.json file:
{ "name": "MY_PROJECT", "extra": { "installer-paths": { "cockpit/addons/{$name}": ["type:cockpit-module"] } } }
-
In your project root run:
composer require raruto/cockpit-sample-data
Related projects: cockpit-blog