webdna / dynamic-options
A fieldtype that renders a dropdown based on twig code.
Installs: 715
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 2
Type:craft-plugin
Requires
- craftcms/cms: ^5.0.0
This package is auto-updated.
Last update: 2024-10-29 10:54:10 UTC
README
A fieldtype that renders a dropdown based on twig code.
Requirements
This plugin requires Craft CMS 4.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require webdna/dynamic-options
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Dynamic Options.
Dynamic Options Overview
Dynamic Options give you the ability to populate a dropdown field type with option generated from twig code.
Configuring Dynamic Options
Write twig code or use twig to include an external twig file that renders json.
Brought to you by webdna