karls/reference-image-bundle

There is no license information available for the latest version (1.0.0) of this package.

Provides a new Field Type for handling image references.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Language:Vue

Type:symfony-bundle

1.0.0 2019-12-18 09:56 UTC

This package is auto-updated.

Last update: 2024-05-08 05:29:23 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