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

show options from own TCA when custom fields are reused #581

Open
medarob opened this issue Aug 14, 2023 · 1 comment
Open

show options from own TCA when custom fields are reused #581

medarob opened this issue Aug 14, 2023 · 1 comment

Comments

@medarob
Copy link
Contributor

medarob commented Aug 14, 2023

When a custom field was choosen to be reused in mask, the label, descriptions, options and probably other values are not shown in the mask modul backend.

It looks "empty" like this:
grafik

It would be great if the current label and description text from the own custom TCA settings could be shown as placeholder text.
Maybe with a checkbox before the field and if checked, it's possible to overwrite it (like you can overwrite image title and description in an Textmedia element).
In case of a select field it would be nice to show the current options for the Elemente item as well. (but not editable?)

Maybe other options can be shown as well if available?

Question:
It seems that I can overwrite every option, for example the Elemente items?
Maybe it's possible to change individual options or add additional Elemente items?

@nhovratov
Copy link
Collaborator

nhovratov commented Aug 14, 2023

It seems that I can overwrite every option, for example the Elemente items?

Yes, since Mask 8.2 this is possible. You can override almost every option from "real" TCA defined fields.

Maybe it's possible to change individual options or add additional Elemente items?

I think overriding items does not really work, as these are indexed array items and can't be easily replaced. If you add e.g. an item, the first one will be replaced, because they share the same key "0".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants