Pimcore asset source for Neos CMS
composer require wwwision/neos-assetsource-pimcore
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
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': ~
For the Pimcore API to work with this package, the following steps are required
A Datahub GraphQL configuration is required with Read access to the Assset
, Asset Folder
and Asset Listing
types at least
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 pxpreview
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'
The development of this package was generously sponsored by Marktplatz GmbH - Agentur für Web & App. Thank you for supporting Open Source development!
Contributions in the form of issues or pull requests are highly appreciated
See LICENSE