We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20532
    • 14 Posts
    I’ve looked around for solutions, but I haven’t yet found anything. Has anyone successfully implemented a faceted navigation system using Ditto? We’ve gotten very close by feeding parameters to Ditto’s tags. Initial results seem to work for one checkbox, but nothing seems to really change when multiple checkboxes are selected. The deal breaker seems to be that Ditto’s SQL statement uses an OR statement instead of an AND statement.

    Does anyone know where/how to alter this?

    My guess is that the answer lies in ditto.class.inc.php, but I’m not sure. Any clues would be greatly appreciated.
      • 2394
      • 3 Posts
      You don’t mention exactly which parameters you are trying to use or what your Ditto call ends up looking like.

      the filter param should help if you’re trying to filter out option a and option b (but on different sources). IIRC, I was trying to filter out (from option a either option i, option ii or option iii) and (from option b either option iv or option v) and ended up having to modify classes/filter.class.inc.php
        • 20532
        • 14 Posts
        Thanks for the clues. I’ll investigate further with filtering - it may just be the answer.

        Here’s an example of an assembled ajax call:

        /ajx?tags=product+data,basic+elements,content+%2815+col%29&ditto_tagData=status,function,data-source,type,location-on-page,page-type&ditto_paginate=1&ditto_summarize=5&ditto_showPublishedOnly=1&ditto_paginateAlwaysShowLinks=1