There is no license information available for the latest version (dev-master) of this package.

AnciSalute News

dev-master 2020-03-11 16:18 UTC

README

News module for Ancisalute

Installation

You need to require this package and enable the module in your configuration.

add to composer requirements in composer.json

"ancisalute/news": "dev-master as 1.0.0",

or run command bash:

composer require "ancisalute/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/ancisalute/news/src/views/news',
            ],
        ],
    ],

Add configurations to News module in modules-amos.php in backend as follows

 'news' => [

	'modelMap' => [
            'News' => ancisalute\news\models\News',
            'NewsSearch' => ancisalute\news\models\search\NewsSearch'
        ],
        'controllerMap' => [
            'news' => [
                'class' => ancisalute\news\controllers\NewsController',
            ]
        ],
 ],

Add configurations to i18n component in components-others.php in common as follows

 'i18n' => [
    'translations' => [
        '*' => [
            'extraCategoryPaths' => [
                'amosnews' => '@vendor/ancisalute/news/src/i18n',
            ],
        ],
    ],
  ],

add news migrations to console modules (console/config/migrations-amos.php):

'@vendor/ancisalute/news/src/migrations'