karls/reference-image-bundle
Composer 安装命令:
composer require karls/reference-image-bundle
包简介
Provides a new Field Type for handling image references.
README 文档
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
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-12-18