loqus / bynder-craft-cms
Bynder DAM Integration for Craft CMS 5.x
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: ^8.0
- craftcms/cms: ^5.0
This package is auto-updated.
Last update: 2025-08-11 15:08:59 UTC
README
This unofficial plugin integrates Bynder Digital Asset Management with Craft CMS 5.x by exposing their UCV image selector as a popup that saves the selected image data in a field so the selection can be used in twig templates.
Installation
To install the plugin, follow these instructions.
- Open your terminal and go to your Craft project:
cd /path/to/project
- Then tell Composer to load the plugin:
composer require loqus/bynder-craft-cms
- In the Control Panel, go to Settings → Plugins and click the “Install” button for 'craft-bynder-assets'.
OR do it via the command line
php craft install/plugin bynder-craft-cms
- On the settings page, fill out the Bynder portal url without https:// to start using the plugin.
Requirements
2 new fields are required for the plugin to work. Add:
- datLocation
- mediaId
fields to the volume(s)
- If the plugin is installed and the fields have been added you will see two new buttons. One in the asset overview for uploading multiple assets from your Bynder portal
- And one in the asset detail overview to replace the current image
Important
When an asset has been chosen, the datLocation and mediaId have been filled and the asset has been saved. A 10% quality image will be saved in the original dimensions in the local folder in order for Craft to have a physical (but smaller) asset. If you remove the values from the datLocation and mediaId fields and save the asset a full size copy is stored locally as a backup.
Templating:
Plain and simple
- The plugin was created as replacement for imager-x
{% set image = entry.headerImage.one() %} {% set compressedImage = craft.imager.transformImage(image, {width: 1000,mode: 'crop', position: '50% 50%'}) %}
- You can use the same attributes like this:
{% set image = entry.headerImage.one() %} {% if(image.datLocation is defined and image.datLocation != "" %} {% set compressedImage = craft.bynder.transformImage(image, {width: 1000,mode: 'crop', position: '50% 50%'}) %} {% else %} {% set compressedImage = craft.imager.transformImage(image, {width: 1000,mode: 'crop', position: '50% 50%'}) %} {% endif %} <img src="{{ compressedImage.url }}" width="{{compressedImage.width}}" height="{{compressedImage.height}}" alt="{{ compressedImage.title }}">
Available attributes
The mode accepts the most common used imager and bynder transforms: 'crop', 'fit', 'fill' and 'ratio' Currently there is no support for complex transforms or srcsets