hyva-themes avatar

Hyva Cms Custom Field

This generates custom field types and handlers for Hyvä's CMS editor, letting you extend beyond the built-in text, select, and textarea fields. It walks you through three patterns: basic custom inputs with validation, inline enhanced controls like searchable dropdowns, and modal-based handlers for complex selections like product pickers. The workflow covers module setup, template generation with proper Alpine.js wiring, di.xml registration, and the event protocols for field-to-handler communication. Use it when you need specialized CMS inputs like date ranges, color pickers, or product selectors. The references folder has solid examples of all three patterns, which matters since getting the event dispatch and validation containers right is fiddly.

skills.sh installs
759
GitHub stars
85
last updated
Aug 21, 2026

Install

$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-cms-custom-field --agent claude-code

Installs into .claude/skills of the current project.

Files

Hyvä CMS Custom Field Type Creator

Overview

This skill guides the creation of custom field types and field handlers for Hyvä CMS components. Custom field types extend the built-in field types (text, textarea, select, etc.) with specialized input controls for the CMS editor interface.

Two types of custom fields:

  1. Basic Custom Field Type: Custom input control with direct data entry (e.g., date range, color picker, custom validation)
  2. Field Handler: Enhanced UI with complex interactions (e.g., product selector with images, searchable dropdown, link configuration modal)

Command execution: For commands that need to run inside the development environment (e.g., bin/magento), use the hyva-exec-shell-cmd skill to detect the environment and determine the appropriate command wrapper.

Workflow

Step 1: Module Selection

If not already specified in the prompt, determine where to create the custom field type:

Option A: New Module

Use the hyva-create-module skill with:

  • dependencies: ["Hyva_CmsBase", "Hyva_CmsLiveviewEditor"]
  • composer_require: {"hyva-themes/commerce-module-cms": "^1.0"}

Option B: Existing Module

Sponsors

Details

Repository
github.com/hyva-themes/hyva-ai-tools
Category
AI & Agent Building
First seen
Jun 3, 2026

More from hyva-themes/hyva-ai-tools

All 12
1databricks avatardatabricks-model-servingdatabricks/databricks-agent-skillsDatabricks Model Serving endpoint lifecycle and ops. Use when asked to: CRUD serving endpoints (CLI or MLflow Deployments client); configure traffic routing for756skills.sh installs
2github avatarreact18-batching-patternsgithub/awesome-copilotProvides exact patterns for diagnosing and fixing automatic batching regressions in React 18 class components. Use this skill whenever a class component has mul756skills.sh installs
3prompt-security avataropenclaw-audit-watchdogprompt-security/clawsecAutomated daily security audits for OpenClaw agents with DM delivery and optional email reporting. Runs deep audits, creates or updates a recurring cron job, an754skills.sh installs
4jwynia avatarworldbuildingjwynia/agent-skillsDiagnose world-level story problems. This skill should be used when settings feel thin, institutions feel designed rather than evolved, economies don't make sen753skills.sh installs
5hyva-themes avatarhyva-cms-components-dumphyva-themes/hyva-ai-toolsDump all Hyvä CMS components from active modules. This skill should be used when the user wants to list all CMS components, view available components, debug com751skills.sh installs
6mblode avatarscaffold-climblode/agent-skillsScaffolds a production-ready TypeScript CLI and npm package with ESM, a dual tsdown build (CLI binary plus typed library), vitest, oxlint and oxfmt via ultracit751skills.sh installs