craft-dynamic-fields icon indicating copy to clipboard operation
craft-dynamic-fields copied to clipboard

Add ability to display Dynamic Field columns in element index view tables.

Open benjaminkohl opened this issue 4 years ago • 2 comments

I noticed that none of the dynamic fields we have set up on various entry types are listed as table column options in the element index views. I forget what all goes into registering a field type as a possible table attribute on an element index but this would be a great feature to add.

Craft 3.7.19 LJ Dynamic Fields 3.0.12

benjaminkohl avatar Jan 14 '22 15:01 benjaminkohl

I will have a look at this, but in the meantime, you could possibly use a Preparse field to store and display the value in the element index views?

https://plugins.craftcms.com/preparse-field

lewisjenkins avatar Jan 14 '22 16:01 lewisjenkins

It sounds like the bare minimum to get it to work automatically for custom fields is that the field types need to implement the craft\base\PreviewableFieldInterface interface. I had to ask on Discord because I was looking through the Craft source and nothing jumped out at me.

benjaminkohl avatar Jan 14 '22 19:01 benjaminkohl