We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6714
    • 1 Posts
    Hello all,

    I have multiple TV’s for my products and I’m trying to create a hyperlink with multiple clauses in the ditto filter.

    I know how to add clauses to a filter using &filter and the pipe symbol in a ditto call (line,Spring_Summer10,1|item,necklace,1) which works great.

    What I’m trying to achieve is something like the following:

    <a href="http://dmarlene.com/index.php?id=4&ditto_filter=line,Spring_Summer10,1|item,necklace,1">
    Spring / Summer 2010 Necklaces</a>

    But it doesn’t work...

    I’ve searched around and haven’t seen many people using ditto filters in URL’s...maybe there’s a better way?

    Any ideas?

    ~peace
    david
      • 10165
      • 129 Posts
      Hi David,

      I’m trying to achieve something similar myself, I’m using tv values (in some cases tags). I’ve used this method (http://www.kunane.com/modx/ditto-multiple-filters.html) so far with select boxes for the user to select and generate the url params.

      I have 2 problems,
      - it works as long as there is only one item in the data, i.e. if a tv tag "gender" contains say: Men||Women then it doesn’t work
      - if you leave select "all" (no value) then no results returned

      I’m still working on this so hopefully will find a solution..