- Issue created by @larowlan
- π¬π§United Kingdom catch
In order to meet this use-case it would be simple enough to expand the formatter's settings to support the configuration options listed here i.e.
component type disallow/allow list
component type limits
component delta limitsAt least from the description, I think this covers exactly what I was thinking of in the original issue.
Feels likely that the UX will be complex - but it could be its own formatter plugin so that the default case doesn't have to show any config at all.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
component type disallow/allow list
π Because this is about alternative renderings! Of course.Consider the implications for API consumers like JSON:API
Why would a
FieldFormatter
plugin have any effect on API responses? π€ Over at #3468272-34: Spike: Explore storing the ComponentTreeStructure field property one row per component instance β .π‘.3, I just got really enthusiastic about how close JSON:API support now seems β I struggle to see how this ties into that.- Applying those formatter settings to JSON:API implies filtering the component instances presented in the API response; but that filtering could be done client-side too?
- β¦ unless the point is that the filters are controlled by the site builder aka server side, not the front-end developer. But then it still feels odd to have formatter (aka ~markup generator) settings apply to an API response?
- β¦ unless the point is that the resulting markup is also made available via JSON:API somehow β similar to
TextItemBase
'sprocessed
field property?
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Yeah the implications on JSON:API are copy pasta, removing that
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
We should ensure prior to π± Milestone 1.0.0: Production Sites Postponed that this is all viable.