johnnymcweed / luya-module-archive
归档模块将为您提供基本的归档系统。
dev-master
2018-04-06 07:23 UTC
Requires
- johnnymcweed/luya-module-event: dev-master
- johnnymcweed/luya-module-person: dev-master
- johnnymcweed/luya-module-place: dev-master
- luyadev/luya-core: ~1.0.0
This package is not auto-updated.
Last update: 2024-09-21 14:21:39 UTC
README
归档模块为Luya应用程序添加对象归档提供了可能性。因此,您可以在后台添加文章,之后在前端显示。
安装
安装模块需要Composer。
composer require johnnymcweed/luya-module-archive:dev-master
配置
return [ 'modules' => [ // ... 'archive' => 'johnnymcweed\archive\frontend\Module', 'archiveadmin' => 'johnnymcweed\archive\admin\Module', // ... ], ];
初始化
在成功安装和配置后,运行迁移、导入和设置命令以在项目中初始化模块。
1.) 迁移您的数据库。
./vendor/bin/luya migrate
2.) 将模块和迁移导入您的LUYA项目。
./vendor/bin/luya import
在为您的组添加权限后,您将能够编辑和添加新的新闻文章。
示例视图
已设置默认视图。使用这些视图或创建自己的自定义视图。