I think having an entity to create custom filter would be really interesting, that's why I propose this feature

Comments

Anwoon created an issue. See original summary.

anwoon’s picture

Title: Entity List FIlter ? » Entity List Filter ?
anwoon’s picture

Version: 8.x-1.1 » 8.x-1.0
StatusFileSize
new42.51 KB
anwoon’s picture

Assigned: anwoon » Unassigned
Status: Active » Needs review
lus’s picture

Hello @Anwoon,

1. I think that it would be a better option to add this filter directly into the Default Entity List plugin instead of creating a new one. In your patch the user needs to select first the Filter Query Plugin, than the Filter Display Plugin and finally the Filter Layout. I don't think it's that user-friendly (as it's nowhere explained and complex for such a feature).

I would like to see it more like the Pager, in the disabled section, where if the user wants to add the filter he drags it into the Filter region (present by default) and the Default Query would check only for those parameters and add a new condition (as you made it).

2. Why is the submit button optional and not in the same form as the date filters ? When we don't drag that button, we are not able to submit filters.

3. Would be great to have a Reset button.

lus’s picture

StatusFileSize
new24.53 KB

That's my proposition of the feature. I have based myself on the patch of @Anwoon with a difference that I have listed in the #5 comment. However I didn't fulfill the third point - a Reset button.

  • Anwoon committed 5d3df0c on 8.x-1.x
    Feature #3092175 - Added EntityListSortableFilter and...
  • Anwoon committed 7ffd9cf on 8.x-1.x
    Feature #3092175 - Fix permission of custom routing
    
  • Anwoon committed 8853650 on 8.x-1.x
    Feature #3092175 - Added missing documentation
    
  • Anwoon committed 8b1c50e on 8.x-1.x
    Feature #3092175 - Added template for form filter, conditionnal table...
  • Anwoon committed a28482f on 8.x-1.x
    Feature #3092175 - Refactor entity list filter and create entity list...
  • Anwoon committed ac31948 on 8.x-1.x
    Feature #3092175 - Added missing content of documentation
    
  • Anwoon committed ca6549b on 8.x-1.x
    Feature #3092175 - Added entity list filter
    
  • Anwoon committed d2801d9 on 8.x-1.x
    Feature #3092175 - Added CustomListEntityListFilter and options for...
  • Anwoon committed e8b6bd8 on 8.x-1.x
    Feature #3092175 - Fix commentary
    
martygraphie’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.