Skip to content

Instantly share code, notes, and snippets.

@peterdm
Created April 20, 2015 14:18
Show Gist options
  • Save peterdm/196113e10cb4e1ae0deb to your computer and use it in GitHub Desktop.
Save peterdm/196113e10cb4e1ae0deb to your computer and use it in GitHub Desktop.
filter.strategy : { /* strategy is just what I named content_type … I’ll probably rename it */
type: single, /* or multiple - how many selections are allowed */
suggest: false, /* how many options can be selected */
count: 5, /*
order: top, /* top options, or alpha */
subfilters: {
recipe : { /* which parent selection would trigger these sub filters */
filter.recipe.course : { … },
filter.recipe.dish : { … },
filter.recipe.cuisine : { … },
filter.recipe.lifestyle : { … },
filter.recipe.diet : { … },
filter.recipe.occasion : { … },
filter.recipe.main_ingredient : { … }
},
product : {
filter.product.type : { … },
filter.product.subtype : { … },
filter.product.manufacturer : { … },
filter.product.price : { … }, /* Will need some customization to define/request ranges */
filter.product.rating : { … },
filter.product.award : { … },
filter.product.institute_reviewed : { … }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment