Craft CMS field types for editing and storing Condition Rules
A Top Shelf Craft creation
Michael Rog, Proprietor
The Conditions field types enable you to create "Condition Builder" fields, for editing and storing Condition Rules as field data, enabling a wide variety of content curation use cases.
-
From your project directory, use Composer to require the plugin package:
composer require topshelfcraft/conditions
Note: Conditions is also available for installation via the Craft CMS Plugin Store.
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Conditions.
-
There is no Step 3.
To customize the plugin's behavior, you can add a conditions.php
file to your Craft config directory:
<?php
return [
'availableFieldTypes' => [
EntryConditionField::class,
];
];
Craft 4.4+ and PHP 8.0+
Please open a GitHub Issue or submit a PR to the 4.x.dev
branch.
- Plugin development: Michael Rog / @michaelrog
- Plugin icon adapted from "Rule" icon by Kamin Ginkaew