As we've done in the past with Terracottas and Ancient Lamps, and as illustrated in early version of the wireframes for the new Quire theme, we will be adding a simple filtering tool that can be used on grids of catalogue images. This filter feature will be used here in CVA and included in the core Quire Starter Theme.
The filters will be variable from project to project, so users will need a direct way to choose what keys in the object data to filter on. I would suggest we follow the pattern established with object_display_order (used to populate the entry page tombstones), and establish a new object_filter array.
One special case to note is date. In the example above it's just given as a string, but I think we'd want to establish a better pattern using a start and end date of some kind.
Ask with this, we'd also want to establish a new param for config.yml to turn the feature on or off. Perhaps gridObjectFilters: true.
As we've done in the past with Terracottas and Ancient Lamps, and as illustrated in early version of the wireframes for the new Quire theme, we will be adding a simple filtering tool that can be used on grids of catalogue images. This filter feature will be used here in CVA and included in the core Quire Starter Theme.
The filters will be variable from project to project, so users will need a direct way to choose what keys in the object data to filter on. I would suggest we follow the pattern established with
object_display_order
(used to populate the entry page tombstones), and establish a newobject_filter
array.One special case to note is
date
. In the example above it's just given as a string, but I think we'd want to establish a better pattern using a start and end date of some kind.Ask with this, we'd also want to establish a new param for config.yml to turn the feature on or off. Perhaps
gridObjectFilters: true
.