carlcs / craft-checkboxfield
Checkbox Field plugin for Craft CMS
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: >=5.3.0
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-11-20 04:44:06 UTC
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.