arter / amos-documenti
AMOS系统,用于以共享视角管理文档
Requires
- php: >=5.4.0
- arter/amos-admin: >=1.8
- arter/amos-attachments: ^1.1.6
- arter/amos-comments: ^1.1
- arter/amos-core: ^1.9.60
- arter/amos-dashboard: ^1.8
- arter/amos-notify: ^1.4
- arter/amos-workflow: ^1.0
- cornernote/yii2-workflow-manager: *
- kartik-v/yii2-detail-view: *
- kartik-v/yii2-widget-fileinput: *
- raoul2000/yii2-workflow: *
- raoul2000/yii2-workflow-view: *
- yiidoc/yii2-redactor: *
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-16 20:01:57 UTC
README
文档管理。
安装
您需要在您的配置中要求此包并启用模块。
在composer.json中添加到composer要求
"arter/amos-documenti": "dev-master",
或运行以下命令 bash
composer require "arter/amos-documenti:dev-master"
在modules-amos.php中启用Documenti模块,添加
'documenti' => [
'class' => 'arter\amos\documenti\AmosDocumenti',
],
将documenti迁移添加到控制台模块(console/config/migrations-amos.php)
'@vendor/arter/amos-documenti/src/migrations'
如果项目使用前端或公共站点,并且documenti需要在后台之外可见,请启用表单/向导字段以允许在前端/主页上发布,并带有参数
'documenti' => [
'class' => 'arter\amos\documenti\AmosDocumenti',
'params' => [
'site_publish_enabled' => true,
'site_featured_enabled' => true
]
],
内容适合与cwh内容管理器一起使用。要这样做
- 激活cwh插件
- 打开cwh配置向导(需要管理员权限)URL
- 在内容配置部分搜索documenti
- 编辑documenti的配置并保存
如果需要标签,请在每个项目的main project的backend/config文件夹中的"modules-amos.php"中启用此模块(标签部分)。之后,在标签管理器中启用树。
如果平台使用报告和/或评论,并且您想启用Documenti的评论/报告内容,请在modules-amos.php中的配置中添加模型(报告/评论)
用于报告
'report' => [
'class' => 'arter\amos\report\AmosReport',
'modelsEnabled' => [
.
.
'arter\amos\documenti\models\Documenti', //line to add
.
.
]
],
用于评论
'comments' => [
'class' => 'arter\amos\comments\AmosComments',
'modelsEnabled' => [
.
.
'arter\amos\documenti\models\Documenti', //line to add
.
.
],
],
可配置字段
以下为可配置字段列表,AmosDocumenti模块的属性。如果某些属性默认值不适合您的项目,您可以在模块中配置它,例如
'documenti' => [
'class' => 'arter\amos\documenti\AmosDocumenti',
'enableCategories' => false, //changed property (default was true)
],
enableFolders - 布尔值,默认 = false
定义是否启用文档文件夹。如果启用,在列表中导航将是分层结构。enableCategories - 布尔值,默认 = true
定义是否启用文档分类。如果不启用,在表单/向导中不会显示选择文档分类的字段。enableDocumentVersioning - 布尔值,默认 = false
如果为true,则启用文档的版本控制。文件夹不进行版本控制。whiteListFilesExtensions - 字符串默认 = 'txt, csv, pdf, txt, doc, docx, xls, xlsx, rtf'
允许上传文件的扩展名列表。扩展名字符串分隔符是","。hidePubblicationDate - 布尔值,默认 = false
创建的文档始终可见,隐藏字段publication_from, publication_tolayoutPublishedByWidget - 数组 您可以选择要在小部件中显示的元素 {publisher}{publishingRules}{targetAdv}{target}{category}{status}{pubblicationdates}{pubblishedfrom}{pubblishedat}{createdat} **
public $layoutPublishedByWidget = [ 'layout' => '{publisher}{targetAdv}{category}', 'layoutAdmin' => '{publisher}{targetAdv}{category}{status}{pubblicationdates}' ];
- showCountDocumentRecursive - 布尔值,默认 = false
如果为true,则显示所有子文件夹中的文档数量,如果为false,则显示文件夹第一级中的文档数量
defaultView - 设置默认视图 您可以在模块之间设置默认视图 'expl' -> icons/explorer(新视图和界面) 'list' -> 经典旧视图 'grid' -> 经典旧表格视图
$documentsOnlyText - 布尔值,默认 = false
如果为true,则主文档文件和外部文档链接不是必需的。