定制 cpsit/admiral-cloud-connector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cpsit/admiral-cloud-connector

最新稳定版本:3.0.6

Composer 安装命令:

composer require cpsit/admiral-cloud-connector

包简介

AdmiralCloud connector

README 文档

README

This extension connects the AdmiralCloud with TYPO3. It adds a separate sys_file_storage for AdmiralCloud files. At every place sys_file_reference is used, you can use AdmiralCloud files.

Installation

composer require cpsit/admiral-cloud-connector

Run the following SQL to install the sys_file_storage:

INSERT INTO `sys_file_storage` (`pid`, `deleted`, `description`, `name`, `driver`, `configuration`, `is_default`, `is_browsable`, `is_public`, `is_writable`, `is_online`, `auto_extract_metadata`, `processingfolder`) VALUES
(0, 0, 'Automatically created during the installation of EXT:admiral_cloud_connector', 'AdmiralCloud', 'AdmiralCloud', '', 0, 1, 1, 0, 1, 1, '1:/_processed_/');

Now create the corresponding fileMount "AdmiralCloud" for the storage.

Add following to config/system/additional.php:

if (is_file(__DIR__ . '/custom.php')) {
    require_once __DIR__ . '/custom.php';
}

Create a file config/system/custom.php with the following content (replace credentials with yours):

<?php

putenv('ADMIRALCLOUD_ACCESS_SECRET=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
putenv('ADMIRALCLOUD_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxx');
putenv('ADMIRALCLOUD_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
putenv('ADMIRALCLOUD_DISABLE_FILEUPLOAD=0');
putenv('ADMIRALCLOUD_FLAG_CONFIG_ID=0');

putenv('ADMIRALCLOUD_DISABLE_FILEUPLOAD=1');
putenv('ADMIRALCLOUD_IS_PRODUCTION=1');
putenv('ADMIRALCLOUD_IMAGE_CONFIG_ID=238');
putenv('ADMIRALCLOUD_IMAGE_PNG_CONFIG_ID=321');
putenv('ADMIRALCLOUD_VIDEO_CONFIG_ID=239');
putenv('ADMIRALCLOUD_DOCUMENT_CONFIG_ID=240');
putenv('ADMIRALCLOUD_AUDIO_CONFIG_ID=241');
putenv('ADMIRALCLOUD_FLAG_CONFIG_ID=10');
putenv('ADMIRALCLOUD_IFRAMEURL=https://t3intpoc.admiralcloud.com/');
putenv('ADMIRALCLOUD_DEFAULT_IMAGE_OUTPUT_FORMAT=webp'); // webp | jpeg | png

$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['admiral_cloud_connector'] = [
    'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
    'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
    'groups' => [
        'all',
        'system',
    ],
    'options' => [
        'defaultLifetime' => 0,
    ],
];

Create a backend user with e-mail, first name, last name and security group the user has in AdmiralCloud. The email address must be the same the user is using in AdmiralCloud. If the User is admin, the security group is ignored but must be set to random number (e.g. 13).

TYPO3 editor permissions

To enable editors for AdmiralCloud functions, please add at least the following permission:

Mounts & Workspaces

  • Add "AdmiralCloud" to the list of accessible FileMounts
  • File operation permissions / File: check permission for [addFileViaAdmiralCloud]

optional

Allow cropping tool for AdmiralCloud images: Check permission for tx_admiralcloudconnector_crop on tab "Access Lists" / "Allowed excludefields" in "File Reference".

Known bugs

  • Using Admiral Cloud may need to increase some apache values like post_max_size=128M and max_input_vars=2500

ToDo

  • Add information about authentification / security groups to documentation

统计信息

  • 总下载量: 583
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-09-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固