Archive Module
The archive module gives the possibility to add an object archive to a Luya application. Therefore articles can be added in the backend, which get shown on the frontend afterwards., (*1)
Installation
For the installation of modules Composer is required., (*2)
composer require johnnymcweed/luya-module-archive:dev-master
Configuration
return [
'modules' => [
// ...
'archive' => 'johnnymcweed\archive\frontend\Module',
'archiveadmin' => 'johnnymcweed\archive\admin\Module',
// ...
],
];
Initialization
After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project., (*3)
1.) Migrate your database., (*4)
./vendor/bin/luya migrate
2.) Import the module and migrations into your LUYA project., (*5)
./vendor/bin/luya import
After adding the persmissions to your group you will be able to edit and add new news articles., (*6)
Example Views
There are default views set up. Use these or create your own custom views., (*7)