carlcs/craft-checkboxfield
Composer 安装命令:
composer require carlcs/craft-checkboxfield
包简介
Checkbox Field plugin for Craft CMS
README 文档
README
This plugin provides a field type that looks exactly like Craft's default Checkboxes field, but stores a boolean value to the database (similar to the Lightswitch field), so you can use a custom field parameter in your ElementCriteriaModel.
Installation
To install the plugin, copy the checkboxfield/ folder into craft/plugins/. Then go to Settings → Plugins and click the "Install" button next to "Checkbox Field".
Usage
Custom field parameter usage:
{% set entries = craft.entries.myCheckbox(1).myOtherCheckbox(0) %}
Field Type Settings
Uncheck "Show field name and instructions" to hide the field's name and it's instructions. This also removes the top margin, to make multiple Checkbox fields look like Craft's default Checkboxes field with multiple options.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-02-02
