These are chat archives for luyadev/luya
The Yii2 wrapper to build beautiful and easy editable websites pretty fast! - https://luya.io
and its in modules section in your config?
now navigate to -> settings -> groups -> auth and enable auth for news
/** * This is the base config. It doesn't hold any informations about the database and is only used for local development. * Use env-local-db.php to configure you database. */ /* * Enable or disable the debugging, if those values are deleted YII_DEBUG is false and YII_ENV is prod. * The YII_ENV value will also be used to load assets based on enviroment (see assets/ResourcesAsset.php) */ defined('YII_ENV') or define('YII_ENV', 'local'); defined('YII_DEBUG') or define('YII_DEBUG', true); $config = [ /* * For best interoperability it is recommend to use only alphanumeric characters when specifying an application ID. */ 'id' => 'myproject', /* * The name of your site, will be display on the login screen */ 'siteTitle' => 'My Project', /* * Let the application know which module should be executed by default (if no url is set). This module must be included * in the modules section. In the most cases you are using the cms as default handler for your website. But the concept * of LUYA is also that you can use a website without the CMS module! */ 'defaultRoute' => 'cms', /* * Define the basePath of the project (Yii Configration Setup) */ 'basePath' => dirname(__DIR__), 'modules' => [ /* * If you have other admin modules (e.g. cmsadmin) then you going to need the admin. The Admin module provides * a lot of functionality, like storage, user, permission, crud, etc. But the basic concept of LUYA is also that you can use LUYA without the * admin module. * * @secureLogin: (boolean) This will activate a two-way authentification method where u get a token sent by mail, for this feature * you have to make sure the mail component is configured correctly. You can test this with console command `./vendor/bin/luya health/mailer`. */ 'admin' => [ 'class' => 'luya\admin\Module', 'secureLogin' => false, // when enabling secure login, the mail component must be proper configured otherwise the auth token mail will not send. 'interfaceLanguage' => 'ru', // Admin interface default language. Currently supported: en, de, ru, es, fr, ua, it, el, vi, pt, fa ], /* * Frontend module for the `cms` module. */ 'cms' => [ 'class' => 'luya\cms\frontend\Module', 'contentCompression' => true, // compressing the cms output (removing white spaces and newlines) ], /* * Admin module for the `cms` module. */ 'cmsadmin' => [ 'class' => 'luya\cms\admin\Module', 'hiddenBlocks' => , 'blockVariations' => , ], 'news' => 'luya\news\frontend\Module', 'newsadmin' => 'luya\news\admin\Module', ], 'components' => [ /* * Add your smtp connection to the mail component to send mails (which is required for secure login), you can test your * mail component with the luya console command ./vendor/bin/luya health/mailer. */ 'mail' => [ 'host' => null, 'username' => null, 'password' => null, 'from' => null, 'fromName' => null, ], /* * The composition component handles your languages and they way your urls will look like. The composition components will * automatically add the language prefix which is defined in `default` to your url (the language part in the url e.g. "yourdomain.com/en/homepage"). * * hidden: (boolean) If this website is not multi lingual you can hide the composition, other whise you have to enable this. * default: (array) Contains the default setup for the current language, this must match your language system configuration. */ 'composition' => [ 'hidden' => false, // no languages in your url (most case for pages which are not multi lingual) '
After adding the persmissions to your group you will be able to edit and add new news articles.https://luya.io/packages/luyadev--luya-module-news