wwwision/neos-assetsource-pimcore 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wwwision/neos-assetsource-pimcore

最新稳定版本:1.3.0

Composer 安装命令:

composer require wwwision/neos-assetsource-pimcore

包简介

Pimcore asset source for Neos CMS

README 文档

README

Pimcore asset source for Neos CMS

Setup

Install package via composer

composer require wwwision/neos-assetsource-pimcore

Configure Pimcore asset source

In a global (or site specific) Settings.yaml:

Neos:
  Media:
    assetSources:
      'pimcore':
        assetSource: 'Wwwision\Neos\AssetSource\Pimcore\AssetSource\PimcoreAssetSource'
        assetSourceOptions:
          label: 'Pimcore'
          description: 'Pimcore Asset Source'

          api:
            baseUrl: '<https://pimcore-base.url>'
            endpoint: '<datahub configuration name>'
            apiKey: '<datahub api key>'

Note: Additional options for the HTTP client can be defined via additionalConfiguration. For example in order to disable SSL checks:

Neos:
  Media:
    assetSources:
      'pimcore':
          # ...
          api:
            # ...
            additionalConfiguration:
              verify: false

(Optionally) disable Neos asset source

If the Pimcore asset source should be used exlusivly, the built-in "neos" asset source can be disabled globally via Settings.yaml:

Neos:
  Media:
    assetSources:
      'neos': ~

Pimcore

For the Pimcore API to work with this package, the following steps are required

Active GraphQL configuration

A Datahub GraphQL configuration is required with Read access to the Assset, Asset Folder and Asset Listing types at least

Image Thumbnail configurations

Two image thumbnail configurations should be created, in order to provide a good UX in the Neos backend:

  • thumbnail with a Contain transformation of 250x250 px
  • preview with a Cover transformation of 1200x1200 px

Alternatively, the thumbnailConfigurationName and/or previewThumbnailConfigurationName options can be specified to use different thumbnail configurations:

Neos:
  Media:
    assetSources:
      'pimcore':
          # ...
          api:
            # ...
            thumbnailConfigurationName: 'gallery-thumbnail'
            previewThumbnailConfigurationName: 'gallery-full-width'

Acknowledgements

The development of this package was generously sponsored by Marktplatz GmbH - Agentur für Web & App. Thank you for supporting Open Source development!

Contribution

Contributions in the form of issues or pull requests are highly appreciated

License

See LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固