firecms icon indicating copy to clipboard operation
firecms copied to clipboard

Add a dropdown filter to reference properties

Open jabelone opened this issue 3 years ago • 2 comments

Hi there,

I have a collection that makes use of a reference property to another collection (so I can use a dynamic list of categories). This seems to work well, but I don't get a dropdown list for the filter at the top of the column like I would by using the enumValues: [] config option.

Essentially, given the following property:

category: {
            title: "Category2",
            validation: { required: true },
            dataType: "reference",
            path: "cms-categories",
            previewProperties: ["name"],
        },

I'd like to see a dropdown filter like pictured on the left most category column in the picture below.

image

Alternatively, it would be nice to add a dropdown filter (exactly as per above screenshot) above the table at the top of the page rather than at the top of the column. The use case being I'd like for other less tech savvy users to have a nice big obvious dropdown at the top of the page so they can easily see which "category" they are currently viewing/editing entities from. I know this is a bit niche, so the first request above would be awesome just by itself!

jabelone avatar May 17 '22 04:05 jabelone

I am afraid this is not possible at the moment. Adding it as a feature request

fgatti675 avatar May 18 '22 12:05 fgatti675

Thanks so much! I've just updated the title/description so it's a little more like a feature request than a question :)

jabelone avatar May 18 '22 12:05 jabelone

This was added a few versions ago!

fgatti675 avatar May 28 '23 21:05 fgatti675