karls / reference-image-bundle
Provides a new Field Type for handling image references.
Package info
github.com/Karls-Developers/ReferenceImageBundle
Language:Vue
Type:symfony-bundle
pkg:composer/karls/reference-image-bundle
Requires
- unite-cms/core-bundle: >=0.8
This package is auto-updated.
Last update: 2026-03-08 09:38:39 UTC
README
Provides a new Field Type for handling image references.
Installation
via composer
composer require karls/reference-image-bundle
in config/bundles.php
Karls\ReferenceImageBundle\KarlsReferenceImageBundle::class => ['all' => true],
in config/packages/assets.yaml
framework: assets: packages: KarlsReferenceImageBundle: json_manifest_path: "%kernel.project_dir%/public/bundles/karlsreferenceimage/manifest.json" base_path: '/bundles/karlsreferenceimage'
Usage
Reference Image
Unite-CMS doesn't support references with images as a preview. Now you can reference a domain and content_type and also a preview_image. The preview_image setting defines which field of the content_type is a image and should be displayed when selected. The config should look like this (similar as normal reference):
{ "type": "reference_image", "settings": { ... , "preview_image": "image" } }
All other configs are the same as a normal reference