- Issue created by @Anybody
- π©πͺGermany Anybody Porta Westfalica
@larowlan if you're fine with the proposal, we'll start implementing this as submodule via MR.
Yes, please make this feature happen. Adding attributes to link fields is horrible on frontend.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Element class formatter does this too I think
I'm happy with a sub-module, but we'd have to be mindful about how we merge values from the formatter with user supplied values.
Perhaps we need options 'overrride user options' or 'user options override defaults'
- π©πͺGermany Anybody Porta Westfalica
Thanks for the feedback @larowlan that's wonderful news!
Yes I think one of the key benefits is to have that control in one module. For the beginning, I'd say we should simply merge and unify them, not overriding anything. For the future we should then see, if there are cases where overriding into one or the other direction makes sense as an option? (YAGNI)
It's planned to start here soon! :)
- Merge request !23Draft: Resolve #3486997 "Add link attributes formatter" β (Open) created by Anybody
- Assigned to lrwebks
- Status changed to Needs work
about 2 months ago 11:46am 20 February 2025 - π©πͺGermany lrwebks Porta Westfalica
The formatter is in place and works as expected (as far as I'm aware). If a value is set in the formatter, it overrides any value from the field widget, but keeps the widget value if it is not set in the formatter. I also added a note regarding that in the formatter settings, so that there will be no confusion as to why a setting provided via field widget is not taking effect in the actual view (that confusion would definitely happen to me a lot :|).
So, it is off to βNeeds Reviewβ now.