ersaf/documents

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

Ersaf Documents

1.1.0 2020-11-12 18:04 UTC

README

documents management.

Installation

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

add to composer requirements in composer.json

"ersaf/documents": "dev-master as 1.0.0",

or run command bash:

composer require "ersaf/documents": "dev-master as 1.0.0",

Configure the theme property of the view application component.

    'view' => [
        'class' => 'elitedivision\amos\core\components\AmosView',
        'theme' => [
            'pathMap' => [
               '@vendor/elitedivision/amos-documenti/src/views/documenti' => '@vendor/ersaf/documents/src/views/documents',
            ],
        ],
    ],

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

 'documenti' => [
        'class' => 'elitedivision\amos\documenti\AmosDocumenti',
        'enableFolders' => true,
        'modelMap' => [
            'Documenti' => 'ersaf\documents\models\Documenti',
            'Documentisearch' => 'ersaf\documents\models\search\DocumentiSearch'
        ],
        'controllerMap' => [
            'documenti' => [
                'class' => 'ersaf\documents\controllers\DocumentController',
            ],
            'document-advancement' => [
                'class' => 'ersaf\documents\controllers\DocumentAdvancementController',
            ],
            'document-tipology' => [
                'class' => 'ersaf\documents\controllers\DocumentTipologyController',
            ],
            'document-category' => [
                'class' => 'ersaf\documents\controllers\DocumentCategoryController',
            ],
            'document-category2' => [
                'class' => 'ersaf\documents\controllers\DocumentCategory2Controller',
            ],
            'document-category3' => [
                'class' => 'ersaf\documents\controllers\DocumentCategory3Controller',
            ],
            'document-category4' => [
                'class' => 'ersaf\documents\controllers\DocumentCategory4Controller',
            ],
            'document-category5' => [
                'class' => 'ersaf\documents\controllers\DocumentCategory5Controller',
            ],
            'ajax' => [
                'class' => 'ersaf\documents\controllers\api\AjaxController',
            ],
        ],
    ],

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

 'i18n' => [
    'translations' => [
        '*' => [
            'extraCategoryPaths' => [
                'amosdocuments' => '@vendor/ersaf/documents/src/i18n',
            ],
        ],
    ],
  ],

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

'@vendor/ersaf/documents/src/migrations'