guave/visualradio-bundle
最新稳定版本:2.3.0
Composer 安装命令:
composer require guave/visualradio-bundle
包简介
Visual Radio Field for Contao 4.13+
README 文档
README
This is a small extension for Contao to display radio buttons with images.
Requirements
- Contao 4.13+
- PHP 7.4 or 8.0+
Install
$ composer require guave/visualradio-bundle
Usage
Add the visual radio as a field. Required are the following:
- the templates as an array for options (without
ce_) eval['imagePath']is a path within your webrooteval['imageExt']is the file extension of your images
$GLOBALS['TL_DCA']['tl_content']['fields']['visualradio'] = [ 'inputType' => 'visualradio', 'options' => [ '2col-text', '1col-img' ], 'eval' => [ 'imagePath' => 'files/content-elements/images', 'imageExt' => '.jpg', ], 'sql' => ['type' => 'string', 'length' => 255, 'default' => ''], ];
统计信息
- 总下载量: 2.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2019-11-13