guave/visualradio-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 webroot
  • eval['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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2019-11-13