elitedivision/amos-documenti
Sistema AMOS per gestire i documenti in un ottica condivisa
Requires
- php:>=5.4.0
- cornernote/yii2-workflow-manager:*
- elitedivision/amos-admin:^2.2.0
- elitedivision/amos-attachments:^1.16.0
- elitedivision/amos-comments:^1.1
- elitedivision/amos-core:^1.35.0
- elitedivision/amos-dashboard:^1.9.1
- elitedivision/amos-notify:^1.5
- elitedivision/amos-workflow:^1.5.0
- elitedivision/amos-seo:^1.0.3
- elitedivision/amos-layout:^1.12.1
- kartik-v/yii2-detail-view:*
- kartik-v/yii2-widget-fileinput:*
- raoul2000/yii2-workflow:*
- raoul2000/yii2-workflow-view:*
- yiidoc/yii2-redactor:*
- open20/agid-organizationalunit:*
- open20/file-system:*
Requires (Dev)
- yiisoft/yii2-faker:*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 1.23.0
- 1.22.2
- 1.22.1
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.1
- 1.17.0
- 1.15.0
- 1.14.0
- 1.13.2
- 1.13.1
- 1.13.0
- 1.11.3
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.23
- 1.5.22
- 1.5.21
- 1.5.20
- 1.5.19
- 1.5.18
- 1.5.17
- 1.5.16
- 1.5.15
- 1.5.14
- 1.5.13
- 1.5.12
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0.x-dev
- 1.5.0
- 1.4.9.x-dev
- 1.4.8.x-dev
- 1.4.7.x-dev
- 1.4.6.x-dev
- 1.4.5.x-dev
- 1.4.4.x-dev
- 1.4.3.x-dev
- 1.4.2.x-dev
- 1.4.2.2-dev
- 1.4.2.1-dev
- 1.4.1
- 1.4
- 1.3
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0.0
- dev-test/1.35.0/1
- dev-gianluca/1.35.0/1
- dev-daniele/1.10.6/1
- dev-cruscotto-lavoro/1.34.0/1
- dev-mev-doc-correllati-com-fe/1.0.0/1
- dev-stefanob/1.24.0/1
- dev-michelec/sastFL/1.29.0/7
- dev-test/1.29.1/1
- dev-ssgiovanni/agid
- dev-test/1.34.0/1
- dev-fabiano/1.34.0/1
- dev-victor/1.29.0/9
- dev-stefanob/agid/legislatura_2024
- dev-didatticaFe/1.11.0
- dev-michelec/1.11.0
- dev-dof/1.34.0/1
- dev-test/1.33.0/1
- dev-gianluca/1.32.0/1
- dev-test/1.32.1/1
- dev-test/1.32.0/2
- dev-stefanob/32924/1
- dev-test/1.29.0/8
- dev-michelec/1.29.0/8
- dev-daniele/1.10.5/2
- dev-test/1.32.0/1
- dev-gianluca/1.31.0/1
- dev-comune_fe
- dev-test/1.30.1/1
- dev-test/1.31.0/1
- dev-michelec/ticket/1.29.0/6
- dev-test/1.29.0/7
- dev-test/1.31.0/2
- dev-victor/1.30.1/1
- dev-test/1.30.0/3
- dev-test/1.22.3/2
- dev-daniele/1.10.5/1
- dev-elena-d360/1.30.0/1
- dev-test/1.30.0/2
- dev-test/1.30.0/1
- dev-stefanob/1.29.0/7
- dev-merge/1.30.0/1
- dev-test/1.17.2/3
- dev-test/1.29.0/6
- dev-gianluca/1.29.0/6
- dev-michelec/1.29.0/6
- dev-michelec/1.29.0/5
- dev-gianluca/1.29.0/4
- dev-test/1.29.0/4
- dev-test/1.29.0/5
- dev-michelec/1.29.0/4
- dev-gianluca/1.29.0/3
- dev-elisa/1.29.0/3
- dev-test/1.29.0/3
- dev-cesari/1.29.0/3
- dev-test/1.29.0/1
- dev-cesari/1.29.0/2
- dev-test/1.29.0/2
- dev-cesari/1.29.0/1
- dev-fabiano/1.29.0/1
- dev-test/1.28.1/1
- dev-fabiano/1.27.1/1
- dev-cesari/1.27.0/1
- dev-test/1.27.1/1
- dev-fabiano/1.27.0/1
- dev-test/1.27.0/1
- dev-test/1.24.0/3
- dev-dof/1.24.0/3
- dev-cesari/1.24.0/2
- dev-elisa/1.26.0/1
- dev-test/1.26.0/1
- dev-rc/1.23.0/1
- dev-test/1.24.0/2
- dev-test/1.10.4/1
- dev-test/1.17.2/2
- dev-test/1.25.0/1
- dev-fabiano/1.24.1/1
- dev-cesari/1.24.0/1
- dev-test/1.24.0/1
- dev-filippo/1.23.0/4
- dev-test/1.24.1/1
- dev-gianluca/1.24.0/1
- dev-test/1.23.0/3
- dev-gianluca/1.23.0/3
- dev-fabiano/1.23.0/3
- dev-filippo/1.23.0/3
- dev-gianluca/1.23.0/2
- dev-daniele/1.10.3/2
- dev-test/1.10.3/2
- dev-test/1.23.0/2
- dev-test/1.22.3/1
- dev-filippo/1.20.0/2
- dev-test/1.23.0/1
- dev-gianluca/1.22.0/2
- dev-la_francesca/mev_pubblicazione_cartelle
- dev-filippo/1.22.0/2
- dev-test/1.22.0/2
- dev-daniele/1.17.2/1
- dev-test/1.17.2/1
- dev-fabiano/1.22.0/2
- dev-fabiano/1.18.0/6
- dev-test/1.18.0/8
- dev-riccardo/1.22.0/2
- dev-test/1.22.0/1
- dev-test/1.17.1/6
- dev-test/1.21.0/5
- dev-scarface_piattellite/test/1.21.0/4
- dev-scarface_piattellite/test/1.21.0/3
- dev-test/1.21.0/4
- dev-scarface_piattellite/test/1.21.0/2
- dev-test/1.21.0/3
- dev-gianluca/1.20.0/1
- dev-eventi/1.17.1/3
- dev-test/1.21.0/2
- dev-test/1.20.0/1
- dev-gianluca/1.19.0/sposta_documenti
- dev-gianluca/1.18.0/integrazione_onlyoffice
- dev-provas3
- dev-test/1.11.3/1
- dev-fabiano/1.18.0/5
- dev-test/1.18.0/6
- dev-test/1.19.0/1
- dev-cesari/1.18.0/4
- dev-test/1.18.0/5
- dev-test/1.18.0/4
- dev-test/1.18.0/2
- dev-test/1.17.1/5
- dev-stefanob/1.18.0/1
- dev-fabiano/1.18.0/2
- dev-cesari/1.18.0/1
- dev-stefanob/onlyoffice/1
- dev-test/1.18.0/3
- dev-test/1.18.0/1
- dev-fabiano/1.18.0/1
- dev-filippo/1.17.1/5
- dev-stefan/test/1.11.0
- dev-test/1.17.1/4
- dev-1.17.2/1
- dev-filippo/test/1.17.1/5
- dev-scarface_digiteca/test/1.17.1/4
- dev-scarface_digiteca/test/1.17.1/3
- dev-elena/1.17.1/3
- dev-test/1.17.1/3
- dev-daniele/1.17.1/4
- dev-test/1.17.1/2
- dev-daniele/1.17.1/1
- dev-test/1.17.1/1
- dev-test/1.17.0/2
- dev-cesari/1.16.0/1
- dev-test/1.16.0/1
- dev-dof/1.16.0/1
- dev-gianluca/1.17.0/2
- dev-test/1.17.0/1
- dev-gianluca/1.16.0/10
- dev-test/1.16.0/11
- dev-test/1.13.1/1
- dev-test/1.16.0/10
- dev-test/1.16.0/9
- dev-stefanob/1.16.0/8
- dev-test/1.16.0/8
- dev-test/1.16.0/7
- dev-upsf_2022
- dev-marco/1.16.0/4
- dev-test/1.16.0/6
- dev-test/1.16.0/5
- dev-la_francesca/1.16.0_4
- dev-test/1.16.0/4
- dev-gianluca/1.16.0/2
- dev-test/1.16.0/3
- dev-gianluca/1.16.0/3
- dev-test/1.16.0/2
- dev-elena/1.16.0/2
- dev-michelezucchini/1.16.0/2
- dev-elisa/1.16.0/2
- dev-la_francesca/1.16.0
- dev-daniele/1.16.0/2
- dev-daniele/1.14.0/5
- dev-test/1.10.3/1
- dev-test/1.14.1/1
- dev-la_francesca/1.14.0
- dev-test/1.15.0/1
- dev-fabiot_1.14.0
- dev-test/1.14.0/4
- dev-michelezucchini/1.14.0/4
- dev-daniele/1.14.0/3
- dev-test/1.13.2/1
- dev-test/1.13.1/4
- dev-la_francesca/1.13.1_2
- dev-test/1.14.0/3
- dev-daniele/1.14.0/2
- dev-mapple/1.14.0/2
- dev-test/1.14.0/2
- dev-test/1.13.1/3
- dev-mattia/1.14.0/2
- dev-test/1.14.0/1
- dev-grafica-aria/1.14.0/1
- dev-michelezucchini/1.14.0/1
- dev-intranet-aria/1.13.0/7
- dev-elisa/1.13.1/1
- dev-test/1.13.1/2
- dev-riccardo/1.13.1/1
- dev-riccardo/1.13.0/7
- dev-gianluca/1.13.0/7
- dev-elisa/1.13.0/7
- dev-la_francesca/1.13.1
- dev-michelezucchini/1.13.0/7
- dev-test/1.13.0/7
- dev-gianluca/1.13.0/6
- dev-test/1.13.0/6
- dev-francesca/1.13.0/6
- dev-riccardo/1.13.0/6
- dev-test/1.10.2/1
- dev-risorsecomuni/1.9.1
- dev-elena/1.13.0/6
- dev-test/1.6.2/2
- dev-gianluca/1.13.0/4
- dev-michelezucchini/1.6.1/2
- dev-la_francesca/1.13.0/3
- dev-dof/1.13.0/5
- dev-riccardo/1.13.0/5
- dev-test/1.13.0/5
- dev-stefan/test/1.13.0/1
- dev-stefan/test/1.13.0/4
- dev-test/1.13.0/4
- dev-gianluca/1.13.0/3
- dev-test/1.13.0/3
- dev-riccardo/1.13.0/3
- dev-gianluca/1.13.1/1
- dev-riccardo/1.13.0/1
- dev-michelezucchini/1.13.0/3
- dev-test/1.11.2/1
- dev-michelezucchini/1.11.1/2
- dev-test/1.13.0/2
- dev-francesca/1.13.0/1
- dev-test/1.13.0/1
- dev-test/1.11.0
- dev-test/1.11.1/1
- dev-gianluca/1.12.0/1
- dev-test/1.12.0/2
- dev-stefano_1_12_0_1
- dev-elena/1.11.0
- dev-test/1.9.2/1
- dev-enrico.gennari/1.12.0/1
- dev-stefan/tag/1.6.1
- dev-test/1.6.2/1
- dev-test/1.12.0/1
- dev-riccardo/1.12.0/1
- dev-elena/1.12.0/1
- dev-michelezucchini/1.12.0/1
- dev-la_fracesca/befe
- dev-lisa_1.9.0
- dev-melanieguzzinati/1.11.0
- dev-scarface_ebike_1.11.0
- dev-elena/befe
- dev-dof/GRAFICA-BI-LESS
- dev-stefan/AGID-DOCUMENTI
- dev-michelez/1.11.0
- dev-test/1.9.1
- dev-test/befe
- dev-riccardo/GRAFICA-BI-LESS
- dev-elena/nuova-grafica-form
- dev-test/1.10.1
- dev-la_francesca/1.10.0
- dev-fabiot_1.11.0
- dev-riccardo/1.11.0
- dev-elena/AGID-DOCUMENTI
- dev-test/1.10.0
- dev-fabiot_1.10.0
- dev-la_francesca/1.7.1
- dev-mapple/AGID-DOCUMENTI
- dev-elena/1.7.0
- dev-mattia/GRAFICA-BI-LESS
- dev-test/1.9.0
- dev-fabiot
- dev-open20/1.6.0/1
- dev-test/1.7.0
- dev-test/1.8.0
- dev-la_francesca/1.7.0
- dev-scarface
- dev-grafica_documenti_RL
- dev-fabiot_duplication
- dev-ancisalute_1.6.0
- dev-test/1.6.1
- dev-fabiot_fix_refactor
- dev-aster_1.6.0
- dev-la_francesca/google_drive
- dev-riccardo/1.7.0
- dev-test/bullet-count
- dev-facilitator_external
- dev-test/1.6.0/1
- dev-la_francesca/notifiche_in_lingua
- dev-fabiot_new
- dev-riccardo/1.6.0/2
- dev-test/1.5.24/1
- dev-la_francesca/1.5.24/1
- dev-test/1.5.23/1
- dev-test/1.5.21/1
- dev-riccardo/1.5.21/1
- dev-test/1.5.18/2
- dev-test/1.5.18/1
- dev-test/1.5.17/2
- dev-test/1.5.17/3
- dev-POI
- dev-fabiot_fix
- dev-fix_documenti
- dev-cruscotto_lavoro
- dev-e015
- dev-ASTER_PR-4
- dev-nuova-grafica-doc-explorer
- dev-rete_comuni_test
- dev-asp_energia
- dev-piattaforma_elite
- dev-umbria
- dev-grafica_icon
- dev-rete_comuni
- dev-aster-test
- dev-arca/1.5.16/1
- dev-aster_test
- dev-grafica
- dev-POI_TEST/1.5.17/1
- dev-MicheleA
- dev-lisa1
- dev-test/1.5.17/1
- dev-test/1.5.16/1
- dev-simonem/1.5.17/1
- dev-nuovo_widget_grafico
- dev-la_francesca/1.5.16/1
- dev-RC-222
- dev-la_francesca/1.5.15/1
- dev-riccardo/1.5.15/1
- dev-test/1.5.15/1
- dev-test/1.5.14/1
- dev-lisa
- dev-riccardo/1.5.14/1
- dev-la_francesca/1.5.14/1
- dev-test/1.5.12/2
- dev-DEPLOY_POI_20180921
- dev-riccardo/1.5.12/2
- dev-cinzia
- dev-riccardo-fix
- dev-smart/seo
- dev-m.bonora/seo
- dev-test/1.5.12/1
- dev-riccardo/1.5.12/1
- dev-fabiot_highlights
- dev-la_francesca/1.5.12/1
- dev-riccardo/1.5.12/1bis
- dev-DEPLOY_POI_20180702
- dev-test/1.5.11/1
- dev-test/1.5.10/2
- dev-la_francesca/1.5.10/2
- dev-simone/1.5.10/2
- dev-luca_l/1.5.10/2
- dev-riccardo/1.5.10/1
- dev-simone/1.5.10/1
- dev-test/1.5.10/1
- dev-smart/search
- dev-g.baraldi/search
- dev-m.bonora/search
- dev-la_francesca/1.5.7/modifiche_workflow
- dev-riccardo-Isotope
- dev-test/1.5.9/1
- dev-enrica/1.5.7/2
- dev-la_francesca/1.5.7/1
- dev-test/1.5.7/1
- dev-la_francesca/1.5.6/1
- dev-enrica/1.5.7/1
- dev-test/1.5.6/1
- dev-la_francesca/1.5.5
- dev-riccardo/1.5.4/1
- dev-test/1.5.4/1
- dev-riccardo/1.5.2/1
- dev-test/1.5.3/1
- dev-test/1.5.2/1
- dev-giuseppe_1.5.2/2
- dev-la_francesca_1.5.2/2
- dev-la_francesca_1.5.2/1
- dev-test/1.5.1/21
- dev-la_francesca_1.5.1/21
- dev-enricaWidgetGrafici/1.5.1/21
- dev-riccardo/1.5.1/21
- dev-Matteo_Widget_test/1.5.1/22
- dev-Matteo_Widget_test/1.5.1/21
- dev-test/1.5.1/17
- dev-test/1.5.1/18
- dev-test/1.5.1/19
- dev-test/1.5.1/20
- dev-riccardo/1.5.1/20
- dev-pivanti
- dev-test/1.5.1/16
- dev-test/1.5.1/15
- dev-enrica/amos-layout
- dev-Matteo_test/1.5.1/14
- dev-test/1.5.1/14
- dev-enrica-transfer
- dev-test/1.5.1/13
- dev-test/1.5.1/12
- dev-test/1.5.1/11
- dev-test/1.5.1/10
- dev-test/1.5.1/9
- dev-enrica_1.5.1.8
- dev-test/1.5.1/8
- dev-fabiot_1.5.1
- dev-test/1.5.1/7
- dev-test/1.5.1/6
- dev-test/1.5.1/5
- dev-test/1.5.1/4
- dev-test/1.5.1/3
- dev-enrica_1.5.1
- dev-test/1.5.1/1
- dev-michelez.1.5
- dev-Matteo_1.5.1/3
- dev-Matteo_1.5.1/1
- dev-test/1.5.1/2
- dev-security
- dev-enrica_1.5.1.1
- dev-fabiot_1.5.2
- dev-test/1.5.0/1
- dev-pivanti_1.5.0
- dev-rudy_1.4.7
- dev-enrica_1.4.4
- dev-fabiot_1.4.3
- dev-enrica_documenti_1.4.3
- dev-import_rudy
README
Documenti management.
Installation
You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
"elitedivision/amos-documenti": "dev-master",
or run command bash
composer require "elitedivision/amos-documenti:dev-master"
Enable the Documenti modules in modules-amos.php, add :
'documenti' => [
'class' => 'elitedivision\amos\documenti\AmosDocumenti',
],
add documenti migrations to console modules (console/config/migrations-amos.php):
'@vendor/elitedivision/amos-documenti/src/migrations'
If a frontend or a public site are used in your project and documenti need to be visible outside backend, enable form/wizard fields to allow publication in frontend/home page with params:
'documenti' => [
'class' => 'elitedivision\amos\documenti\AmosDocumenti',
'params' => [
'site_publish_enabled' => true,
'site_featured_enabled' => true
]
],
The content is suitable to be used with cwh content management. To do so:
- Activate cwh plugin
- Open cwh configuration wizard (admin privilege is required) url: /cwh/configuration/wizard
- search for documenti in content configuration section
- edit configuration of documenti and save
If tags are needed enable this module in "modules-amos.php" (backend/config folder in main project) in tag section. After that, enable the trees in tag manager.
If platform uses report and/or comments and you want to enable Documenti to be commented/to report a content, add the model to the configuration in modules-amos.php:
for reports:
'report' => [
'class' => 'elitedivision\amos\report\AmosReport',
'modelsEnabled' => [
.
.
'elitedivision\amos\documenti\models\Documenti', //line to add
.
.
]
],
for comments:
'comments' => [
'class' => 'elitedivision\amos\comments\AmosComments',
'modelsEnabled' => [
.
.
'elitedivision\amos\documenti\models\Documenti', //line to add
.
.
],
],
Configurable fields
Here the list of configurable fields, properties of module AmosDocumenti. If some property default is not suitable for your project, you can configure it in module, eg:
'documenti' => [
'class' => 'elitedivision\amos\documenti\AmosDocumenti',
'enableCategories' => false, //changed property (default was true)
],
enableFolders - boolean, default = false
Define if document foldering is enabled or not. If enabled, in the lists the navigation will be hierarchical.enableCategories - boolean, default = true
Define if document categories are enabled or not. If not enabled, in form/wizard the field to select document category IS NOT displayed at all.enableDocumentVersioning - boolean, default = false
If true enable the versioning of the documents. The folders aren't versioned.whiteListFilesExtensions - string default = 'txt, csv, pdf, txt, doc, docx, xls, xlsx, rtf'
List of the allowed extensions for the upload of files. Extensions string separator is ", ".hidePubblicationDate - boolean, default = false
The documents created are always visible, hide fields publication_from, publication_tolayoutPublishedByWidget - array You can choose which elemnt tou want to show in the widget {publisher}{publishingRules}{targetAdv}{target}{category}{status}{pubblicationdates}{pubblishedfrom}{pubblishedat}{createdat} **
public $layoutPublishedByWidget = [ 'layout' => '{publisher}{targetAdv}{category}', 'layoutAdmin' => '{publisher}{targetAdv}{category}{status}{pubblicationdates}' ];
- showCountDocumentRecursive - boolean, default = false
If true show the number of document in all sub-folder, if false show the number of documente in the first level of folder
defaultView - set the default view You can setup the default view for module between 'expl' -> icons/explorer (new view and interface) 'list' -> classic old view 'grid' -> classic old table view
$documentsOnlyText - boolean, default = false
If true the main document file and the external document link are not required at all.enableContentDuplication - boolean, default = false
If true enable the content duplication on each row in table view.enableCatImgInDocView - boolean, default = false
If true replace the document icon with the category image in the document view and lists.
Install drive
Insert the following configuration in the module
'documenti' => [
'enableGoogleDrive' => true,
'googleDriveConf' => [
'developerKey' => '<developer_key>',
'clientId' => "<client_id>",
'clientSecret' => "<client_secret>",
'appId' => "<app_id>",
'relativeRedirectUrl' => '/documenti/documenti/own-interest-documents',
'relativePathCredential' => '/web/credenziali.json',
'emailServiceAccount' => 'account@example_name.iam.gserviceaccount.com',
'relativePathCredentialServiceAccount' => '/web/credenziali_service_account.json'
]
];
Obtain google drive the credential
- Go to google drive developer console https://console.developers.google.com/apis/api/drive
- Create a project
- Click on "Credenziali" on the left and next
- Click on "create credential" to generate:
- Chiave API (developerKey)
- ID client OAuth 2.0 (cliendId)
- Chiavi accound di servizio
Enable Google Drive API and Google Picker API
- Go to google drive developer console https://console.developers.google.com/apis/api/library
- Select the project
- Search Google Drive API/ Google Picker API and enable both
#### Configure Service Account
- After generate the service account and his key you can find the:
- Service account email
- Generate the JSON KEY for the service account that you will upload to your server (relativePathCredentialServiceAccount) #### Configure client
- After generate the ID client OAuth 2.0
- Compile the Origin javascript autorizzate URI (site url)
- Compile the URI DI REINDIRIZZAMENTO
- You can find the clientId and the clientSecret
- Generate the JSON to upload on the server, and configure its path on 'relativePathCredential' ### App id You can find the app id on the main page (è evidenzioata in verde)
###Verify app if you click on the left on "Schermata consenso OAuth" anc next on "modifica" you can configure it for development or verify the app
###Example images of configuration You can find them in the /docs/ folder