We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15599
    • 27 Posts
    Hey,
    For some reason, Ditto cannot call any documents.

    I have a template with the Ditto call.

    I have a "home" document that uses the template with the ditto call.

    I have the configuration assigned to display home as the start page.

    I published some dummy articles (at least I think, published is checked, but they are greyed on the document tree).

    When I go to the website, all I can see is No documents found.

    I am using Evolution.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Greyed on the document tree means they are either unpublished or the checkbox to show in menu has been cleared.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 15599
        • 27 Posts
        I checked the show in menu for both documents, but it still displays "No documents found."

        I am just doing a simple Ditto call [[Ditto]] with no parameters.

        Shouldn’t it at least find something?

        Here’s the structure:

        Home

        Articles
        -Article 1
        -Article 2
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          A Ditto call with no parameters will use the document it is being called on as the parent. If the documents to be listed are not children of the page Ditto is called on, how can Ditto know that? Use the &parents=`xx` parameter to tell Ditto which document is the parent.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 15599
            • 27 Posts
            Actually, that’s what I did the first time, and it didn’t work.

            Here’s what I have in the template for home:

            [[Ditto? &parents='2' &display='15' &orderBy='createdon DESC']]
              • 10449
              • 956 Posts
              use backticks `
              not single quotes ’
              and try again smiley
                • 15599
                • 27 Posts
                ahhhh, man!

                Haha, what a silly mistake...

                That was the problem.

                Oh boy.