Skip to content

A fieldtype that renders a dropdown based on twig code.

License

Notifications You must be signed in to change notification settings

webdna/dynamic-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

708b7e1 · Jul 29, 2022

History

10 Commits
May 25, 2018
Jul 29, 2022
Jul 29, 2022
May 25, 2018
May 25, 2018
Jul 29, 2022
Jul 29, 2022
Jul 29, 2022

Repository files navigation

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