We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18646
    • 106 Posts
    I’ll start off by saying, I’m not sure if this belongs in the Ditto thread, so I’m sorry if it does not.
    I’m working on an inherited MODx site that has some code I’ve never seen:

    http://www.smithandvine.com/

    The search area at the top (VineFinder) is what I’m having trouble with. The country filter dropdown works fine. The Template variable code that makes it run is:

    <fieldset><input type="hidden" name="phpMyAdmin" value="-U%2C2bFXrr49pd6vI%2Cno9tq26uX3" />
    [+tve.country:filter->7:blankLabel->All Countries+]       
    </fieldset>
    


    I’ve added the Style dropdown, which is suppose to filter the results based on the style of wine or liquor.
    <fieldset><input type="hidden" name="phpMyAdmin" value="-U%2C2bFXrr49pd6vI%2Cno9tq26uX3" />
    [+tve.style_list:filter->1:blankLabel->Style+]  
    </fieldset>
    


    I’ve also copied the TV of country that I know works, and adjusted it to work with wine and liquor styles. I assume that the filter-> value is a ditto filtering parameter, but I could be wrong. At any rate, the Style dropdown doesn’t filter the data as it should. I assumed if I just copied and changed the values of the working Country dropdown, it would work.

    Can anyone shed some light on what I might be missing here? Thanks all.

    Regards,
    Matt
      • 26931
      • 2,314 Posts
      Hi,

      that snippet code is from TVeditot & TVexplorer

      http://modxcms.com/forums/index.php/topic,16456.0.html
        • 3707
        • 241 Posts
        That’s right, the filter parameter is based on Ditto filters (the first 8 filters work that way at least).

        You just need to find the filter that works best for you. It’s likely to be 7 or 9 depending on how your style_list TV is set up.