Abstract relational fields view modes #18274
Unanswered
ryansupercool
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use
Cp::elementSelectFieldHtmlwithin a customFieldLayoutElement. We'd like to add support for the new view modes coming in 5.9 so developers can configure how these elements display. To make this easier, it would be great if:BaseRelationField::VIEW_MODE_LISTwere moved outsideBaseRelationField, perhaps to an Enum.BaseRelationField::getViewModeFieldHtml()was moved to a Twig template/made available under theCphelper e.g.Cp::viewModeSelectHtml().The latter isn't strictly necessary, and we could get away with a dropdown, but it would be nice to have the icon based UI used elsewhere without having to duplicate it.
Beta Was this translation helpful? Give feedback.
All reactions