Customizing Dynamic Elements
Prerequisites
β οΈ Compatibility Note
Example Use Cases
π Default Directory Structure
Adding a Stimulus Controller Using Automatic Discovery
π§ Steps
1. Create the Stimulus Controller
2. Create a Twig Template
3. Register the Template via a Twig Hook
4. Rebuild your assets

Result
Disabling or Enabling Existing Stimulus Controllers
Example: Disable the taxon-tree Controller in the Admin Panel
taxon-tree Controller in the Admin Panel Rebuild your assets after the change

π Common Keys
3: Manual Registration
Steps
1. Create Your Stimulus Controller
2. Register the Controller Manually
3. Create the Twig Template
4. Register the Template via Twig Hooks
5. Rebuild your assets

π Troubleshooting Tips
Learn More
Last updated
Was this helpful?
