How to set up a Quick Filter menu

PHPBB_IMPORT_WARNING CODE_NEAR_LI

[ul][li]Overview:

This brief tutorial shows you how to set up a Quick Filter menu which lets you instantly select from some commonly used filters.




Note: If you want to do ad-hoc filtering, just push * in the file display to open the filter bar and then type your wildcard pattern or use the drop-down menu to choose which file extensions to display. The purpose of this menu is to provide an even quicker way to do the same thing when you find you frequently want to filter on a few specific types.

[/li]
[li]Commands:

[ul][li]The Clear button runs:
Set QUICKFILTERCLEAR

[/li]
[li]The other buttons run commands like:
Set QUICKFILTER *.pdf
And:
Set QUICKFILTER *.(doc|docx)[/li][/ul]

[/li]
[li]Demonstration video:

https://www.youtube.com/watch?v=5P9VGtf8-o0

[/li]
[li]Sample menu:

You don't need to understand this XML code. As shown in the video above, you can copy it to your clipboard and then paste it to your toolbar to use as a starting point.

If the video moves too fast for you, see How to add buttons from this forum to your toolbars for a step-by-step text instructions on how to paste the menu to your toolbar.

If you want to change the menu and need help, see Editing The Toolbar to get started.

<?xml version="1.0"?> <button backcol="none" display="both" label_pos="right" textcol="none" type="menu"> <label>Quick Filter</label> <icon1>#recursivefilter</icon1> <button backcol="none" display="both" label_pos="right" separate="yes" textcol="none"> <label>Clear filter</label> <icon1>#clearfilters</icon1> <function type="normal"> <instruction>Set QUICKFILTERCLEAR </instruction> </function> </button> <button backcol="none" display="both" label_pos="right" textcol="none"> <label>*.xls *.xlsx</label> <icon1>#recursivefilter</icon1> <function type="normal"> <instruction>Set QUICKFILTER &quot;*.(xls|xlsx)&quot;</instruction> </function> </button> <button backcol="none" display="both" label_pos="right" textcol="none"> <label>*.doc *.docx</label> <icon1>#recursivefilter</icon1> <function type="normal"> <instruction>Set QUICKFILTER &quot;*.(doc|docx)&quot;</instruction> </function> </button> <button backcol="none" display="both" label_pos="right" textcol="none"> <label>*.pdf</label> <icon1>#recursivefilter</icon1> <function type="normal"> <instruction>Set QUICKFILTER &quot;*.pdf&quot;</instruction> </function> </button> </button>

[/li]
[li]Hotkeys and toolbar buttons:

If you prefer to use hotkeys over the mouse, you can create standalone hotkeys which run the same commands, or you can assign hotkeys to the menu items. Ask on the forum if you need help with either.

Similarly, if you want to use the mouse but don't want the extra clicks of going into a menu, you can put the buttons directly on your toolbar instead of in a menu. Just ask if you need help with that, too.[/li][/ul]