Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some basic backend result filter #47

Open
munki-boy opened this issue Jun 4, 2015 · 4 comments
Open

Some basic backend result filter #47

munki-boy opened this issue Jun 4, 2015 · 4 comments

Comments

@munki-boy
Copy link

Hi @nitriques I was thinking about when a lot of results are returned in the backend after clicking "Link to entry" button.

I'm not sure what's the best way to provide some sort of filtering but as you're loading the Publish page into the iframe already. Would it be good to not hide the "Filter Entries" button from the top and also in the section editor field have a box to input a custom filter to append to the url of the iframe src like.

?filter[title]=whatever

So people could choose to limit to certain entries being returned and also use the filter entries facility in general.

It seems to work ok when I hack your iframe src url. I can also return no entries this way until a suitable filter is applied.

Or maybe an option to hide the "Filter Entries" button if authors aren't allowed to alter the filters.

What do you think?

@nitriques
Copy link
Member

Would it be good to not hide the "Filter Entries" button from the top and also in the section editor field have a box to input a custom filter to append to the url of the iframe src like.

YES!!!!!

Or maybe an option to hide the "Filter Entries" button if authors aren't allowed to alter the filters.

Yes, that's the plan. But I need to change some js code in order to make it work.

I would also love to the able to apply a default filter and sort options from the field's settings...

What do you think?

I love it ! ;)

@nitriques
Copy link
Member

I've decided to add a search option instead, But the filter might also be a good thing so I'll leave open.

@mprofitlich
Copy link

mprofitlich commented May 13, 2018

I would like to support your idea of a filter @munki-boy. Here is my use case:
On architectural websites editors upload multiple images per project (not limited). All project images are saved in a section project-images and they are linked to a project entry in the section projects via association. In a project editors should be able to choose a defined number of images for an overview page where all projects are shown. For that I included an ERF field in the projects section. The selection of images works perfectly, only: all images of all projects are shown. It makes no sense to select an image from another project. With a filter I could limit the ERF to images of only the project currently edited.

By the way: ERF is a wonderful tool, thank you for the extension!

@nitriques
Copy link
Member

@mprofitl Great, thanks for your comments. We would have a couple of use cases for it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants