We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    You need to activate the request config file by appending &config=`request` to the snippet call.
      • 3002
      • 25 Posts
      I tried this, with the page uncached:

      [!Ditto? &startID=`39` &config=`request` &debug=`0` &tagMode=`onlyAllTags`  &summarize=`12` &displayArchive=`0` &tpl=`DittoTemplate` &paginate=`1` &emptyText=`No items found.`!]
      


      I still get all the products back, with no filtering. The URL:

      http://example.com/index.php?ditto_filter_1=tvProductCategory%2CTable+Tops&ditto_filter_2=tvTagsFinish%2CWood&ditto_filter_3=tvTagsColour%2CYellows&ditto_filter_4=tvTagsStackable%2CYes&ditto_filter_5=tvTagsWarrantee%2C%3E+12+months&id=63&hiddenTVs=ProductCategory%2CTagsFinish%2CTagsColour%2CTagsStackable%2CTagsWarrantee&multiLevel=1&sortDir=ASC
      


      I must be doing something basically wrong here, can you point me in the right direction?
        • 11975
        • 2,542 Posts
        hi

        you missed some params in your ditto call.

        You should add &tagData=`tvProductCategory` and so on for each TV you are refering to.
        You also need to specify a &tagDelimiter=``, the same as your widget in TV properties (delimited list)
        If Tvs are not attached to the template used by the document you are using to display ditto list you have to use &hiddenTvs.

        Hope that helps

        :-)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 3002
          • 25 Posts
          I did this, per your suggestion:

          [[Ditto? &startID=`39` &config=`request` &debug=`1` &tagData=`tvProductCategory,tvTagsFinish,tvTagsColour,tvTagsStackable,tvTagsWarrantee` &tagDelimiter=`,` &tagMode=`onlyAllTags`  &summarize=`12` &displayArchive=`0` &tpl=`DittoTemplate` &paginate=`1` &emptyText=`No items found.`]]
          


          Still the same result.
            • 16429
            • 254 Posts
            Mmm... I’ve givven a quick look at your URL call, and I think the &multiLevel param is gone in favour of &depth which accepts the number of levels to go throught.
            Give it a try, maybe Mark can confirm.
              kudo
              www.kudolink.com - webdesign (surprised?)

              [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
              • 3002
              • 25 Posts
              Still the same result, this is the URL:

              http://example.com/index.php?ditto_filter_1=tvProductCategory%2COutdoor+Seating&ditto_filter_2=tvTagsFinish%2CWood&ditto_filter_3=tvTagsColour%2CYellows&ditto_filter_4=tvTagsStackable%2CNo&ditto_filter_5=tvTagsWarrantee%2C%3E+36+months&id=63&hiddenTVs=ProductCategory%2CTagsFinish%2CTagsColour%2CTagsStackable%2CTagsWarrantee&depth=5&sortDir=ASC
              


                • 16429
                • 254 Posts
                I’m having trouble trying to have any type of output from Ditto 1.1 beta 2.
                I’ts better to wait until Mark says something smiley
                  kudo
                  www.kudolink.com - webdesign (surprised?)

                  [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
                  • 3002
                  • 25 Posts
                  Hey, Mark, maybe a little example of a snippet call for output a la DittoMachine using Ditto 1.1 beta 2 would be of much help - my site was supposed to go live yesterday, I’ve been trying to crack this problem, it’s driving me nuts shocked

                  Any help will be greatly appreciated!

                  Bobby
                    • 18397
                    • 3,250 Posts
                    Adding &config=`request` is the only step that should be needed.

                    Try this simple call
                    [!Ditto? &startID=`39` &config=`request`!]

                    Then append ?ditto_summarize=######### with different numbers. Please report your results.
                      • 3002
                      • 25 Posts
                      I tried this:
                      [!Ditto? &startID=`39` &summarize=`12` &debug=`1` &config=`request`!]
                      


                      And this:
                      [!Ditto? &startID=`39` &ditto_summarize=`12` &debug=`1` &config=`request`!]
                      


                      And got this (there are 134 products in my DB):
                      Ditto Version 1.1
                      Debug Info
                      Number of documents supposed to summarized : 12
                      Count in database: 134
                      Sort by : createdon
                      Sort direction: DESC
                      Start at item 0 and stop at 12 out of 134
                      Start IDs: 39
                      SQL WHERE statement:
                      Filter: None
                      Fields:
                      
                      [+custom+]
                        title
                        summary
                        link
                        author
                        date
                      [+db+]
                        id
                      


                      Then I did this:
                      [!Ditto? &startID=`39` &ditto_summarize=`48` &debug=`1` &config=`request`!]
                      


                      And got this:
                      Debug Info
                      Number of documents supposed to summarized : 3
                      Count in database: 134
                      Sort by : createdon
                      Sort direction: DESC
                      Start at item 0 and stop at 3 out of 134
                      Start IDs: 39
                      SQL WHERE statement:
                      Filter: None
                      Fields:
                      
                      [+custom+]
                        title
                        summary
                        link
                        author
                        date
                      [+db+]
                        id