Can field have two columns in element index list? #12154
-
Is that possible? let's take for example field that would allow user define date range, between two dates. Would it be possible for field to have two columns in element index list, one with start date and one with end date? |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Oct 23, 2022
Replies: 1 comment
-
Not easily, but the plugin could register additional table columns using the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not easily, but the plugin could register additional table columns using the
craft\services\ElementSources::EVENT_DEFINE_SOURCE_TABLE_ATTRIBUTES
event, which is triggered when defining the available table columns for a source.