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

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'