We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18606
    • 25 Posts
    Hi !
    Another question on Ditto..

    I made a list of document with a Ditto call and a filter to display only some document. It works.
    Now I want to diveded this document in two folder, to obtain something like this:


    Parent (here’s Ditto call)

    - Document 2007
    - Document 1
    - Document 2

    -Document 2006
    - Document 1
    - Document 2
    - Document 3


    I add a &depth=`2` to display all document, but filter dosen’t work.. No document found.
    What I’m doing wrong?

    Thanks a lot.
    Matteo
      • 6726
      • 7,075 Posts
      Could you please post the actual code of your Ditto call ?
      Would help us help you smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 18606
        • 25 Posts
        Ditto call is this:

        
        [[Ditto?parents=`13`&depth=`2`&tpl=`list_gr`&summarize=`all`&extenders=`summary`&sortBy=`pagetitle`&sortDir=`ASC`&filter=`gruppo,1,1`]]
        
        


        where "gruppo" is a TV which is set with numerical values (1 for Document 1, 2 for Document 2, 3 ..).
        If I remove filter, Ditto display a list with all documets.
        With filter, Ditto display: no documents found.
        If I use the same filter with document under the same folder (with id = 13) it works fine.

          • 18397
          • 3,250 Posts
          Please post the debug output of the Ditto call by following the instructions below:

          * Append &debug=`1` to the call
          * Click "Save Debug Console"
          * Rename the extension to .html
          * Attach to the post
            • 18606
            • 25 Posts
            I know about debug.. but I haven’t used it!
            Now it works.. the problem was on filter.

            I try to explain it in my terrible English.

            When I create a new document, the TV "gruppo" (whith Dropdown menu [ Document 1==1||Document 2==2 .. ]) is set by default on the firs value.
            So I think that this Document have the TV "gruppo" set on 1.
            But it’s not like that.. th Tv dosen’t have any value.
            If I manually select the first name from Dropdown it works fine.

            Thank you Mark, now I know to use debug.. smiley