wwwision/neos-assetsource-pimcore

Pimcore asset source for Neos CMS

1.1.0 2021-08-30 11:11 UTC

This package is auto-updated.

Last update: 2022-05-08 16:58:24 UTC


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

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