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
    I actually do not use the makeurl function. I let the document parser handle it by using [~[+id+]~] for generating URLS. What bugsmi0 is talking about is using ?q= with pagination, which I did fix in 1.0.2 (not released yet).
      • 22815
      • 1,097 Posts
      Great snippet.

      Looks like there’s a minor error in assets/snippets/ditto/lang/language.inc.php :

      $_lang['default_archive_template'] = "<a href=\"'[~[+id+]~]\">[+title+]</a> (<span class=\"ditto_date\">[+date+]</span>)";

      should be
      $_lang['default_archive_template'] = "<a href=\"[~[+id+]~]\">[+title+]</a> (<span class=\"ditto_date\">[+date+]</span>)";


      ie there’s an errant ’ (single quote) between a href=" and [~
      which makes all the archive links not work (eg domain.co.uk/’pagename.html)
        No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 18397
        • 3,250 Posts
        This was noted and fixed in another thread.

        Admin Note: Please search before posting.
          • 22815
          • 1,097 Posts
          Apologies. I did search, I read both official Ditto 1.0.1 threads, and I searched for a number of pertinent phrases, but until today I had not realised that the forum search facility ignores anything within code brackets.

          For the benefit of others, I have tracked down the thread by browsing.
          It is here: [Ditto] New request and strange url error
          in Modules, Plugins & Snippets (not Modules, Plugins & Snippets » News, Blogs & Articles).
          [EDIT: Or rather it was until I was sprinkled with Moderator fairydust and was able to move it]

          This reiterates the point I made elsewhere that Ditto needs its own subforum!

          May I suggest that any time a bug in the code is found, a link to the fix is placed in this thread?
            No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
            MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
            Forum: Where to post threads about add-ons | Forum Rules
            Like MODx? donate (and/or share your resources)
            Like me? See my Amazon wishlist
            MODx "Most Promising CMS" - so appropriate!
            • 25663 MODX Staff
            • 12,272 Posts
            Very good idea and point Paul. Thanks for being persistent and patient.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 18397
              • 3,250 Posts

              May I suggest that any time a bug in the code is found, a link to the fix is placed in this thread?

              Agreed, so long as the bug gets filed in the bugtracker as well.
                • 3006
                • 32 Posts
                Hi guys,

                Im sorry for my lack of skills, ive just started to use modX and i really like it.

                Although, i dont get it with Ditto, how do i install it?

                Can someone write me a STEP BY STEP guide how to install Ditto and use it on my webpage?

                Thanks!
                  • 18397
                  • 3,250 Posts
                  Install instructions are included in the pdf distributed with Ditto.
                    • 10161
                    • 31 Posts
                    Hello folks,

                    I’m using Ditto instead of NewsListing and the web page show me this error when I display it :

                    "Parse error: parse error, unexpected $end in D:\web\modx\manager\includes\document.parser.class.inc.php(705) : eval()’d code on line 448"

                    I’m using Ditto 1.0.1, Modx 0.9 rev 1005 on a LAMP configuration. I’m calling the snippet like this in the general template :

                    <div>[[Ditto? &startID=`50`]] </div>

                    The same error occurs when I call the snippet with [!...!]

                    Do someone get the same error and can U tell me where I did it wrong ?

                    Thanks a lot
                      Qui veut faire quelque chose trouve un moyen. Qui ne veut rien faire trouve une excuse.
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Check the very beginning of the snippet’s code; it may have a <?php tag that needs to be removed. Sometimes snippets come with that tag so that syntax-coloring editors will recognize the file and color-code it accordingly.
                        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