Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add inheritance mode control #2161

Conversation

NamelessCoder
Copy link
Member

Adds an extension configuration option and corresponding Form option and option ViewHelper which allows a site to control how Flux handles inheritance of FlexForm values (specific to pages).

Normally, Flux will only allow FlexForm values to be inherited from a parent page to children if the child uses the same page layout (template) as the parent page(s). This new option allows changing this inheritance mode from the default "restricted" to an "unrestricted" mode which allows FlexForm values to be inherited even if the child and parent uses different page layouts.

This is useful when you have different page templates which use the same FlexForm fields (for example, a shared set of fields) and you wish to inherit such fields from parents even if you use different page layouts on the child/parent(s).

There is a similar Form option which allows setting this inheritance mode on a per-template basis. Use the new ViewHelper flux:form.option.inheritanceMode for this, with either "restricted" or "unrestricted" as value. If no mode is specified on a template then the inheritance mode defined in extension configuration will be used.

Adds an extension configuration option and corresponding Form option
and option ViewHelper which allows a site to control how Flux handles
inheritance of FlexForm values (specific to pages).

Normally, Flux will only allow FlexForm values to be inherited from a
parent page to children if the child uses the same page layout (template)
as the parent page(s). This new option allows changing this inheritance
mode from the default "restricted" to an "unrestricted" mode which
allows FlexForm values to be inherited even if the child and parent uses
different page layouts.

This is useful when you have different page templates which use the
same FlexForm fields (for example, a shared set of fields) and you wish
to inherit such fields from parents even if you use different page
layouts on the child/parent(s).

There is a similar Form option which allows setting this inheritance
mode on a per-template basis. Use the new ViewHelper
flux:form.option.inheritanceMode for this, with either "restricted"
or "unrestricted" as value. If no mode is specified on a template then
the inheritance mode defined in extension configuration will be used.
@NamelessCoder NamelessCoder merged commit 871fcf5 into FluidTYPO3:development May 9, 2024
12 checks passed
@NamelessCoder NamelessCoder deleted the feature/inheritance-mode-control branch May 9, 2024 13:50
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