We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3707
    • 241 Posts
    hmmm... what is odd is that it’s returning those particular documents if parents is set to 2. According to your document tree, I’d expect those results if parents was set to 0. You’re only seeing 3 results because that’s the default number returned by Ditto. If you add &display=`all` to your Ditto call you should see all pages returned by Ditto then we can see if the archive pages are being returned.

    Can you then post your Ditto call so I can see exactly what you’re using.
      • 17427
      • 10 Posts
      Cheers for that - I’m using the following Ditto call now:

      [!Ditto? &parents=`2` &sortBy=`pagetitle` &sortDir=`asc` &depth=`0` &removeChunk=`comments` &display=`all`!]


      It now displays all the pages in parent=`2` and still does not return any content in the [+tags+] placeholder at the top of the page / title tag.

      I’ve been adding more pages (and tags) so the whole list is getting bigger, FYI.
        • 36592
        • 970 Posts
        Your Ditto call looks like working correctly now.

        Then as a next step, add &tagData and &tagDelimiter parameter to your Ditto call.
        Probably...
        &tagData=`docTags` &tagDelimiter=`,`
          • 17427
          • 10 Posts
          tkfm, and bob1000, I could kiss you both.

          Working perfectly now - thanks so much for all your help in this.

          Cheers
          Russell
            • 6723
            • 93 Posts
            Hello

            I’ve got a blog using Ditto and TvTagCloud - all seems to be working fine. I have an archive and a tag cloud for all pages on the right-hand column.

            http://www.djcdesign.co.uk/blog/

            Just a couple of things I’m stuck on.

            1. When you got to a particular blof entry - I want the tags for just that page to display under the post. At the moment i have this call;

            [!TvTagCloud? &parent=`2` &landing=`95` &sort=`asc` &tvTags=`documentTags` &showCount=`1`!]

            which shows everything. i can’t figure out what to change, just to display those tags relating to that particular page.

            2. The other problem is a formatting issue - with the archive on the right-hand column - it displays the data correctly - but there is the word ’Archive’ above the months. This is the call here;

            [[Reflect?config=`wordpress` &id=`myDittoCall` &targetID=`2` &getDocuments=`1` &dittoSnippetParameters=`startID:2` &tplMonth=`reflect_month_tpl`]]

            and looking in the template for the page and the `reflect_month_tpl` chunk there is no sign of the word ’Archive’ where does it come from - I want to change it.

            Many thanks, David
              • 36592
              • 970 Posts
              Quote from: DavidJColbran at May 21, 2009, 06:27 AM

              2. The other problem is a formatting issue - with the archive on the right-hand column - it displays the data correctly - but there is the word ’Archive’ above the months. This is the call here;

              [[Reflect?config=`wordpress` &id=`myDittoCall` &targetID=`2` &getDocuments=`1` &dittoSnippetParameters=`startID:2` &tplMonth=`reflect_month_tpl`]]

              and looking in the template for the page and the `reflect_month_tpl` chunk there is no sign of the word ’Archive’ where does it come from - I want to change it.
              Use &tplContainer.
              http://ditto.modxcms.com/files/snippet-reflect-php.html#tplContainer
                • 6723
                • 93 Posts
                Quote from: tkfm at May 21, 2009, 11:29 PM

                Use &tplContainer.
                http://ditto.modxcms.com/files/snippet-reflect-php.html#tplContainer

                Brilliant - thanks - was doing my head in - trying to find that - many thanks smiley
                  • 3349
                  • 126 Posts
                  Im having no luck with this snippet...I’ve followed this thread through but still no joy...

                  I have my structure as follows

                  Portfolio (4)
                  --Clients (38)
                  ----Tag Page 1 (36)
                  ----Tag Page 2 (37)
                  --Landing (39)

                  My Portfolio page has the snippet call - [!TvTagCloud? &parent=`38` &landing=`39` &tvTags=`docTags` &showCount=`1` &tagDelim=`,`!]

                  My Landing page has the snippet call - [!Ditto? &parents=`38` &tagData=`docTags` &depth=`0` &sortBy=`pagetitle` &sortDir=`asc` &display=`all`!]

                  My portfolio page lists all the tags fine and even the links look right too - http:www.blah.com/index.php?id=39&tags=test1

                  But on my landing page all I get is "No documents found" ??

                  All my pages are published as should be, im using modx 0.9.6.2 and ditto 2.1

                  Any help??

                  Cheers

                  bS
                    • 7231
                    • 4,205 Posts
                    I think you are missing the &tagDelimiter=`, ` parameter in your Ditto call.
                      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                      Something is happening here, but you don't know what it is.
                      Do you, Mr. Jones? - [bob dylan]
                      • 3349
                      • 126 Posts
                      Thanks for the reply but adding in this parameter made no difference? Is there anything else that might be causing the error?

                      bS