arter/amos-organizzazioni

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

Sistema AMOS per le Organizzazioni

1.7.1 2022-05-15 21:56 UTC

This package is auto-updated.

Last update: 2024-04-05 16:10:46 UTC


README

Plugin to make organizations.

Installation

1. The preferred way to install this extension is through composer.

Either run

composer require arter/amos-organizzazioni

or add this row

"arter/amos-organizzazioni": "~1.6.3"

to the require section of your composer.json file.

2. Add module to your main config in common:

<?php
'modules' => [
    'organizzazioni' => [
        'class' => 'arter\amos\organizzazioni\Module'
    ],
],

If do you want to enable community creation for every single organization set this
parameter to true in your modules-amos.php config file. If this is true organization
module manager is able to create a reserved community.
These reserved communities can be made/managed by legal representative and 
operative referee.
'modules' => [
    'organizzazioni' => [
        'class' => 'arter\amos\organizzazioni\Module',
        'enableCommunityCreation' => true
    ],
],

3. Apply migrations

php yii migrate/up --migrationPath=@vendor/arter/amos-organizzazioni/src/migrations

or add this row to your migrations config in console:

<?php
return [
    '@vendor/arter/amos-organizzazioni/src/migrations',
];

4. Add configuration to tag module. In backend/config/modules-amos.php add configuration like this:

<?php

if (isset($modules['tag'])) {
    ...
    if (isset($modules['organizzazioni'])) {
        $modules['tag']['modelsEnabled'][] = 'arter\amos\organizzazioni\models\Profilo';
        $modules['tag']['modelsEnabled'][] = 'arter\amos\organizzazioni\models\ProfiloSedi';
    }
    ...
}

Then go in the tag manager and configure the roles for the trees you want for this model.