Skip to content

Selected Filters Object

Simon edited this page Jul 21, 2016 · 1 revision

Selected Filters Object

The selected filters contains all the filters that have been selected by the user. This object is used on the partials templates to let know Handlebars which filters should be selected and what are the values entered for the date inputs

Format of the object

For the following url (search for objects with the keyword ada and filter by category with "SCM - Wellcome Medals")

/search/objects?q=ada&filter%5Bcategories%5D=SCM+-+Wellcome+Medals&page%5Bsize%5D=50

The following object will created:

{
  categories: {
    "SCM - Wellcome Medals": true
  }
}