These are chat archives for luyadev/luya

20th
Dec 2017
lab362
@lab362
Dec 20 2017 04:24
hello. i installed luyadev/luya-module-news by following instructions. It says "After adding the persmissions to your group you will be able to edit and add new news articles."
I don't know how to add persmissions
lab362
@lab362
Dec 20 2017 04:30
luya-2.png
i cannot see news section here
lab362
@lab362
Dec 20 2017 07:10
is this right place where i'm supposed to ask questions?
Basil
@nadar
Dec 20 2017 07:38
Hi @lab362 have you enabled the permissiones for news module? is the news module available in you config files?
did you run import command afterwards?
lab362
@lab362
Dec 20 2017 07:39
image.png
Basil
@nadar
Dec 20 2017 07:40
yes its the right place. Gitter has a very bad notification system, so therefore be prefer slack https://slack.luya.io
lab362
@lab362
Dec 20 2017 07:40
yes i did. and bash gave me such answer. is this right answer?
Basil
@nadar
Dec 20 2017 07:41

and its in modules section in your config?

now navigate to -> settings -> groups -> auth and enable auth for news

lab362
@lab362
Dec 20 2017 07:46
luya-3.png
by following "to -> settings -> groups ->" i reached here and cannot see auth.

/**
 * 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)            
            '
Basil
@nadar
Dec 20 2017 07:49
sorry :-) system -> groups -> permissions active window
i mean system not settings
where you can adjust the user group permission
lab362
@lab362
Dec 20 2017 07:55
))) oh i found it. thank you. i should be more attentive. i dont know how i had not noticed such obvious thing. next questions i`ll ask in slack
Basil
@nadar
Dec 20 2017 07:56
its written very small in the guide to be honest: 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
sure, you’r welcome