interreg/news
There is no license information available for the latest version (dev-master) of this package.
News module for Interreg
dev-master
2020-07-09 15:44 UTC
Requires
- php:>=5.4.0
- elitedivision/amos-core:~1.9.60
- elitedivision/amos-news:1.6.18
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
News module for Interreg
Installation
You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
"interreg/news": "dev-master as 1.0.0",
or run command bash:
composer require "interreg/news": "dev-master",
Configure the theme property of the view application component.
'view' => [
'class' => 'elitedivision\amos\core\components\AmosView',
'theme' => [
'pathMap' => [
'@vendor/elitedivision/amos-news/src/views/news' => '@vendor/interreg/news/src/views/news',
],
],
],
Add configurations to News module in modules-amos.php in backend as follows
'news' => [
'modelMap' => [
'News' => 'interreg\news\models\News',
'NewsSearch' => 'interreg\news\models\search\NewsSearch'
],
'controllerMap' => [
'news' => [
'class' => 'interreg\news\controllers\NewsController',
]
],
],
Add configurations to i18n component in components-others.php in common as follows
'i18n' => [
'translations' => [
'*' => [
'extraCategoryPaths' => [
'amosnews' => '@vendor/interreg/news/src/i18n',
],
],
],
],
add news migrations to console modules (console/config/migrations-amos.php):
'@vendor/interreg/news/src/migrations'