Search

This is a weird situation.

I have 3 categories

  • food
  • drinks
  • both

I need to have these filtered results

  • by food
  • by drinks
  • by both (food + drink)

Even if both's meaning is food and drink, in programming is just another different category

i solved the following scenario with filtering

{$category}, both ---> i get results from both plus food or drinks

But this limits me to have food, drinks, both listing as in (no filtering), because both are always present

Any ideas?

solved

filter by: {$category} --> default to all, when not specified when present the url will look like this --> product/food,all

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details