Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Include reset button on Custom block library page(/admin/structure/block/block-content) when any filter selected by admin/editor.
Proposed resolution
Update 'Custom block library' view to enable 'Reset' button.
Remaining tasks
None
User interface changes
For admin, 'Reset' button rendering on /admin/structure/block/block-content page.
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#9 | Screenshot 2021-04-16 at 16.55.07.png | 57.05 KB | Gauravvvv |
#8 | Custom-block-library-Custom-block-D9.png | 89.37 KB | Nikhil Banait |
#7 | after-patch.mp4 | 7.24 MB | BhumikaVarshney |
#7 | applying-patch.png | 19.84 KB | BhumikaVarshney |
#4 | 3207405-after_patch.png | 125.34 KB | Abhijith S |
Comments
Comment #2
Nikhil Banait CreditAttribution: Nikhil Banait as a volunteer and at Syngenta commentedAdded patch.
Comment #3
Nikhil Banait CreditAttribution: Nikhil Banait as a volunteer and at Syngenta commentedComment #4
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #2 and its working fine,The reset button is appearing in the custom blocks view .
After patch :
RTBC +1
Comment #5
guilhermevp CreditAttribution: guilhermevp at CI&T commentedWeird, applied the patch, cleared cache but the button didn't rendered. I wonder what went wrong. That said, this will probably needs an usability review.
Comment #6
Nikhil Banait CreditAttribution: Nikhil Banait as a volunteer and at Syngenta commented@guilhermevp In order to render the Reset button, either you have to select any filter or simply click on Apply button.
Comment #7
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedHi @Nikhil Banait
Am also facing the same issue, applied the patch, cleared cache but the button didn't rendered.
Also tried your solution you have suggested
" In order to render the Reset button, either you have to select any filter or simply click on Apply button."
Comment #8
Nikhil Banait CreditAttribution: Nikhil Banait as a volunteer and at Syngenta commented@BhumikaVarshney Thanks for testing this patch. Looks like patch did not get apply correctly. In order to check that, please browse to '/admin/structure/views/view/block_content' and in 'Advance' section click on 'Setting' link under 'Exposed From'. Now check if 'Include reset button (resets all applied exposed filters)' is checked or not.
Comment #9
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for DrupalFit commentedThe reset button is showing in the custom blocks view.
Attaching an after-patch screenshot for reference.
Moving to RTBC.
Comment #10
Gauravvvv CreditAttribution: Gauravvvv at OpenSense Labs for DrupalFit commentedComment #13
catchRestoring status after HEAD was broken.
Comment #16
catchCommitted/pushed to 9.3.x and cherry-picked to 9.2.x, thanks!
This isn't something to add an update for - would add complexity to the patch for something that is easy to configure in the UI. But it'll improve usability for new sites.