Skip to content

Fallback element partial templates#16125

Merged
brandonkelly merged 2 commits into5.6from
feature/partial-fallbacks
Nov 15, 2024
Merged

Fallback element partial templates#16125
brandonkelly merged 2 commits into5.6from
feature/partial-fallbacks

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

Description

Adds support for defining fallback element partial templates, e.g. _partials/entry.twig.

The fallback template will be used if a more specific template based on the field layout provider handle (e.g. the entry type handle) doesn’t exist.

Also makes it possible to define partial templates for element types that don’t have field layout providers, like users and addresses.

@brandonkelly brandonkelly merged commit a034be8 into 5.6 Nov 15, 2024
@brandonkelly brandonkelly deleted the feature/partial-fallbacks branch November 15, 2024 17:22
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.

1 participant