Skip to content

[6.x] Add Blade field templates for statamic-forms publish command#14639

Open
martyf wants to merge 10 commits into
statamic:6.xfrom
martyf:feature/publish-blade-form-fields
Open

[6.x] Add Blade field templates for statamic-forms publish command#14639
martyf wants to merge 10 commits into
statamic:6.xfrom
martyf:feature/publish-blade-form-fields

Conversation

@martyf
Copy link
Copy Markdown
Contributor

@martyf martyf commented May 10, 2026

When you run php please vendor:publish --tag=statamic-forms, you get Antlers versions of all of the fields, even if your config for templates is set to blade.

This PR adds Blade versions of all of the publishable form fields, using the Antlers as a base.

While the docs include templates for Blade versions, having in-built support just goes that one step further to improving the onboarding experience for Blade-preferring devs.

This also updates the Blade code to be parity with the Antlers versions.

@martyf martyf changed the title Add Blade field templates for Statamic-forms publish command Add Blade field templates for statamic-forms publish command May 10, 2026
@martyf martyf changed the title Add Blade field templates for statamic-forms publish command [6.x] Add Blade field templates for statamic-forms publish command May 10, 2026
martyf and others added 9 commits May 11, 2026 08:44
So nested handles inside `group` fields submit as arrays, matching the Antlers templates.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Documents the candidate order, language-aware fallback, and the legacy
published `default` override behavior. The last two assertions are
currently red — they pin the legacy `default` fallback that the new
language-specific fallback regresses.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Without this, a user who published only a custom `default.antlers.html`
to the legacy flat path would silently lose their override after the
language subdirectory split.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants