Filter Make content searchable, findable, tagable and filterable (and other 'ables).
The new Filter stack aims to overcome this issue, by providing end users with a flexible way of filtering content. Not only can end users type their own search terms in the search box, but they can also mix-and-match multiple keywords together. This provides an altogether more powerful solution for filtering and displaying content. This is an excellent stack for providing filtering capabilities on basic content types, like text and images.
When a user starts to type keywords in the search box, some clever code scans all of the containers nested within the Filter stack. Any containers with matching search terms are set to display, and the others get faded-out and hidden from view. It really is that simple. The search field is not case sensitive and can happily accept both alphanumeric and numeric entries. When an active filter is being applied, an optional message can be displayed, highlighted that the results below are being filtered. To undo an applied filter, a user can either delete their keywords from the search box, or hit the clear button.
Loose Filtering Example
In this example, free Figure stacks were dragged and dropped into the Filter region. Each had an image and price added, a bit of blurb and a link. Then some hidden code like<div class="ftag;">green</div> was typed into each item, to act as tags (this is the information the Filter stack will try to find when a search is run). The filter type was set to 'Loose' in the stack settings. To test this demo, type colour names (e.g. green) in the box below to filter T-Shirts by colour. Or try multiple colours like orange and red combined in the same search. You could also try filtering based on pricing.
Available in: S / M / L / XL
Add To Cart
blue aqua
Available in: S / M / L / XL
Add To Cart
green army brown
Available in: S / M / L / XL
Add To Cart
ash grey light
Available in: S / M / L / XL
Add To Cart
asphalt dark black
Available in: S / M / L / XL
Add To Cart
baby blue light pale
Available in: S / M / L / XL
Add To Cart
black lead dark
Available in: S / M / L / XL
Add To Cart
silver grey stone
Available in: S / M / L / XL
Add To Cart
brown natural wood
Available in: S / M / L / XL
Add To Cart
coral red bright
Available in: S / M / L / XL
Add To Cart
cranberry red rose
Available in: S / M / L / XL
Add To Cart
cream light
Available in: S / M / L / XL
Add To Cart
eggplant purple grape dark
Available in: S / M / L / XL
Add To Cart
green natural forest
Available in: S / M / L / XL
Add To Cart
fuchsia pink girls
Available in: S / M / L / XL
Add To Cart
gold yellow
Available in: S / M / L / XL
Add To Cart
green grass natural
Available in: S / M / L / XL
Add To Cart
green grass natural
Available in: S / M / L / XL
Add To Cart
grey stone natural
Available in: S / M / L / XL
Add To Cart
lapis blue dark
Available in: S / M / L / XL
Add To Cart
lavender light pink neutral
Available in: S / M / L / XL
Add To Cart
lemon yellow bright
Available in: S / M / L / XL
Add To Cart
blue light sky
Available in: S / M / L / XL
Add To Cart
pink light subtle
Available in: S / M / L / XL
Add To Cart
green lime
Available in: S / M / L / XL
Add To Cart
green mint bright
Available in: S / M / L / XL
Add To Cart
blue night dark midnight navy
Available in: S / M / L / XL
Add To Cart
green olive dark natural
Available in: S / M / L / XL
Add To Cart
red orange bright
Available in: S / M / L / XL
Add To Cart
pink light subtle
Available in: S / M / L / XL
Add To Cart
purple dark
Available in: S / M / L / XL
Add To Cart
red raspberry
Available in: S / M / L / XL
Add To Cart
red warm bright
Available in: S / M / L / XL
Add To Cart
royal blue dark
Available in: S / M / L / XL
Add To Cart
sangria pink red cherry
Available in: S / M / L / XL
Add To Cart
green sea foam natural light subtle
Available in: S / M / L / XL
Add To Cart
silver grey
Available in: S / M / L / XL
Add To Cart
slate grey silver
Available in: S / M / L / XL
Add To Cart
sun yellow bright sunshine
Available in: S / M / L / XL
Add To Cart
blue teal
Available in: S / M / L / XL
Add To Cart
white light snow subtle
Strict Filtering Example
In this example, free Figure stacks were dragged and dropped into the Filter region. Each had an image and price added, a bit of blurb and a link. Then some hidden code like<div class="ftag;">green</div> was typed into each item, to act as tags (this is the information the Filter stack will try to find when a search is run). The filter type was set to 'Strict' in the stack settings. To test this demo, type colour names (e.g. green) in the box below to filter T-Shirts by colour. Or try multiple colours like orange and red combined in the same search. You could also try filtering based on pricing. With strict filtering enabled, only items that match all criteria are shown, unlike loose filtering which displays all items that match one or more criteria.
Available in: S / M / L / XL
Add To Cart
blue aqua
Available in: S / M / L / XL
Add To Cart
green army brown
Available in: S / M / L / XL
Add To Cart
ash grey light
Available in: S / M / L / XL
Add To Cart
asphalt dark black
Available in: S / M / L / XL
Add To Cart
baby blue light pale
Available in: S / M / L / XL
Add To Cart
black lead dark
Available in: S / M / L / XL
Add To Cart
silver grey stone
Available in: S / M / L / XL
Add To Cart
brown natural wood
Available in: S / M / L / XL
Add To Cart
coral red bright
Available in: S / M / L / XL
Add To Cart
cranberry red rose
Available in: S / M / L / XL
Add To Cart
cream light
Available in: S / M / L / XL
Add To Cart
eggplant purple grape dark
Available in: S / M / L / XL
Add To Cart
green natural forest
Available in: S / M / L / XL
Add To Cart
fuchsia pink girls
Available in: S / M / L / XL
Add To Cart
gold yellow
Available in: S / M / L / XL
Add To Cart
green grass natural
Available in: S / M / L / XL
Add To Cart
green grass natural
Available in: S / M / L / XL
Add To Cart
grey stone natural
Available in: S / M / L / XL
Add To Cart
lapis blue dark
Available in: S / M / L / XL
Add To Cart
lavender light pink neutral
Available in: S / M / L / XL
Add To Cart
lemon yellow bright
Available in: S / M / L / XL
Add To Cart
blue light sky
Available in: S / M / L / XL
Add To Cart
pink light subtle
Available in: S / M / L / XL
Add To Cart
green lime
Available in: S / M / L / XL
Add To Cart
green mint bright
Available in: S / M / L / XL
Add To Cart
blue night dark midnight navy
Available in: S / M / L / XL
Add To Cart
green olive dark natural
Available in: S / M / L / XL
Add To Cart
red orange bright
Available in: S / M / L / XL
Add To Cart
pink light subtle
Available in: S / M / L / XL
Add To Cart
purple dark
Available in: S / M / L / XL
Add To Cart
red raspberry
Available in: S / M / L / XL
Add To Cart
red warm bright
Available in: S / M / L / XL
Add To Cart
royal blue dark
Available in: S / M / L / XL
Add To Cart
sangria pink red cherry
Available in: S / M / L / XL
Add To Cart
green sea foam natural light subtle
Available in: S / M / L / XL
Add To Cart
silver grey
Available in: S / M / L / XL
Add To Cart
slate grey silver
Available in: S / M / L / XL
Add To Cart
sun yellow bright sunshine
Available in: S / M / L / XL
Add To Cart
blue teal
Available in: S / M / L / XL
Add To Cart
white light snow subtle
Other examples of use
- If you have a large document to display, you could split it up into multiple chapters and place each chapter into an individual text stack. Then an end user would be able to type search terms in the filter box, and jump straight to the chapters that match their criteria.
- When publishing a large archive of images online, you could tag images by location or date. Then an end user would have an easy way of filtering images.
Setup
- After installation, drag and drop a Filter stack into your page.
- Drag and drop stacks into the Filter region placeholder. For best results, use stacks which allow both text and image input, like the Text stack that comes supplied with RapidWeaver.
- If using images, type
<div class="ftag">enter, a, list, of, tags, here,</div>in the text area, and use that to define tags relating to your images. These tags can be used to aid searching, if each of the filtrable items lacks text. - Any of the settings shown on the righthand side in stacks edit mode can be changed (hover over each setting to see an informational tooltip).
- Under the Filter Region settings, you may wish to adjust the item width, height or padding settings (these settings adjust the grid layout).
The Filter stack was developed exclusively for RapidWeaver. You will not find the source code anywhere else and the Filter stack was engineered specifically to be used in conjunction with the Stacks plugin. By request, several settings have been added, enabling you to carefully customise the display of the search bar, message text and and clear button (to match your RapidWeaver theme). Hopefully you should find that it is daily easy to setup (with some practice) and even easier for your end users to master.
Tags
As mentioned already, tags can be used to provide search terms for the filter stack to use. Tags are especially important to use if your items lack text. To define a set of tags, type<div class="ftag">enter, a, list, of, tags, here,</div> somewhere within the individual item. There are no limits as to how many tags you can use, and multiple items can share the same tags. Using the F-Tag syntax shown above will display your tags in edit mode, but the tags will be hidden from view when the page is viewed normally through a web browser. If no text is available to filter, the Filter stack will look for tags instead. Even if your filterable items do contain text, you can still supplement this text with tags as well.