https://github.com/webdna/dynamic-options
A fieldtype that renders a dropdown based on twig code.
https://github.com/webdna/dynamic-options
Last synced: 12 months ago
JSON representation
A fieldtype that renders a dropdown based on twig code.
- Host: GitHub
- URL: https://github.com/webdna/dynamic-options
- Owner: webdna
- License: mit
- Created: 2018-05-25T09:14:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T11:36:18.000Z (over 1 year ago)
- Last Synced: 2025-06-01T14:58:13.172Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Dynamic Options plugin for Craft CMS 3.x
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.
1. Open your terminal and go to your Craft project:
cd /path/to/project
2. Then tell Composer to load the plugin:
composer require webdna/dynamic-options
3. 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](https://webdna.co.uk)