We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3002
    • 25 Posts
    Hey, Mark - would you mind pasting your code for your form, and the snippet call? Just need to look for clues as to why mine doesn’t work.

    Thanks.

    Bobby
      • 18397
      • 3,250 Posts
      I’ve already pasted the snippet call above and I do not use a form, I append my testing params to the URL string directly.
        • 3002
        • 25 Posts
        Hey, Mark, I’m a little desperate here, site launches on Thursday - can I hire you to troubleshoot this ditto call? it’s all I need to wrap this up. Pretty sure you can fix it in no time. Let me know if this arrangement is possible, so I can send you access details.

        Thanks.

        Bobby
          • 18397
          • 3,250 Posts
          Sure, I’ll take a look. P.M. with details.
            • 3002
            • 25 Posts
            This is an aside, but I can;t find it anywhere in teh forums - in my dropdowns above, I have a choice that says "Show all" - how do I choose all the tags?

            This is what I tried:
            <option value="tvProductCategory,Outdoor Seating,Indoor Seating,Bar Stools,Dining Table Bases,Table Tops,Lounges/Ottoman/Cubes/Drums,Coffee Tables,7">
            Show me all
            </option> 
            

            Or this:
            <option value="tvProductCategory,*,7">
            Show me all
            </option> 
            


            And this:
            <option value="tvProductCategory,Outdoor Seating|Indoor Seating|Bar Stools|Dining Table Bases|Table Tops|Lounges/Ottoman/Cubes/Drums|Coffee Tables,7">
            Show me all
            </option> 
            

            My debug output just says no filters are being applied.

            How do you execute a wildcard in a Ditto call?
              • 18397
              • 3,250 Posts
              value="content,foo" should do the trick.
                • 3002
                • 25 Posts
                I put this in:
                <option value="content,*">
                Show me all
                </option>
                

                And got this output (returned all items, disregarded the filters in the other dropdowns):
                Ditto Version 1.1
                Debug Info
                Number of documents supposed to summarized : 12
                Number of documents collected from the database: 148
                Sort by : createdon
                Sort direction: DESC
                Start at item 0 and stop at 12 out of 148
                Start ID(s): 39
                SQL WHERE statement: None
                Filter: None
                Fields: 
                
                  • 18397
                  • 3,250 Posts
                  content,foo

                  Exactly that.
                    • 3002
                    • 25 Posts
                    Yes, I tried that -
                    <select title="Range" id="rangefilter" name="ditto_filter_1">
                    <option value="content,foo">
                    Show me all
                    </option>
                    ...
                    

                    This is the generated url:
                    http://example.com/index.php?ditto_filter_1=content%2Cfoo&ditto_filter_2=content%2Cfoo&ditto_filter_3=content%2Cfoo\
                    &ditto_filter_4=tvTagsStackable%2CYes%2C7&ditto_filter_5=tvTagsWarrantee%2C%3E+12+months%2C7&ditto_filter_6=tvTagsPriceGuide%2C1%2C7&id=63\
                    &hiddenTVs=ProductCategory%2CTagsFinish%2CTagsColour%2CTagsStackable%2CTagsWarrantee%2CTagsPriceGuide&depth=1&sortDir=ASC
                    


                    I tried it on one dropdown and 3 dropdowns. The results say No entries found. Debug mode is on.
                      • 2762
                      • 1,198 Posts
                      Great work Kudo in this latest beta.
                      Tested with 0.9.5 Ditto 1.1 beta 2 and a "search form" with two dropdown and works great! wink
                        Free MODx Graphic resources and Templates www.tattoocms.it
                        -----------------------------------------------------

                        MODx IT  www.modx.it
                        -----------------------------------------------------

                        bubuna.com - Web & Multimedia Design