We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    Congrats Mark

    This new version is a major leap for ditto.
    The new debug mode is really handy cause even if no documents are found it displays useful informations.
    The PHx support offers high flexibility in templating.

    I haven’t tested yet custom placeholders and custom filters
    is there anything I should know before trying them.
    I mean do you plan to provide advanced examples about these features

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 15987
      • 786 Posts
      I gave it a test run and it looks like everything is running great. One thing I did notice is that there is a comma missing in the json template, I think it was line number 46 and 59
        • 18397
        • 3,250 Posts
        Update the SVN to fix the issue kylej found. Any other issues?
          • 18397
          • 3,250 Posts
          In response to the following:

          Quote from: mmjaeger at Feb 13, 2007, 01:53 PM

          Wow, that seems to work a lot better - thanks again.

          Two questions though:

          1. how do I have to set up reflect that it would not show the news that are show regularly - let’s say I’d like to show the first three news as news and the rest in the archive - the way I have it now, the three news are just repeated again in the archive?

          2. is there a way to have the archive on a different page than the news listing.

          The SVN update makes the start parameter work again in Reflect. You set would set it equal to the summarize argument to show the remaining # of item if Reflect is retrieving its own documents on another page.

          Otherwise, set Ditto’s save value to 1 to solve issue #1.
            • 18397
            • 3,250 Posts
            Ok, just updated the documentation to include Reflect parameters and removed all tv prefix references.
              • 25663 MODX Staff
              • 12,272 Posts
              Where’s the documentation that references Reflect?
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 18397
                • 3,250 Posts
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Love the new code Mark. Great job. I’ve noticed that when only having two items that using the &randomize=`1` option seems to make it die. Bug or feature? tongue
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 18397
                    • 3,250 Posts
                    Ok, updated the code to fix UTF-8, randomize, start, and a few other issues.
                      • 18397
                      • 3,250 Posts
                      Here is Draft 2 of what is new:

                      Ok, I just committed a few other minor changes as well as a bunch of updates to the Ditto TRAC site.

                      Here is 1st draft whats new:

                      What’s new in Ditto 2!

                      • New document and TV retrieval logic for up to 4x the performance of Ditto 1 when used with large quantities of documents
                      • No more tv prefixes
                      • PHx support
                      • Optional randomization of the results
                      • Extender architecture to allow users to expand Ditto’s functionality and create their own custom placeholders
                      ⁃ Request extender for functionality like DittoMachine
                      ⁃ Date and Summary placeholders have been moved to extenders
                      • More powerful debug mode for quicker troubleshooting
                      • Archives have been removed and recreated in the new snippet Reflect available in the Ditto package as reflect.snippet.inc.php
                      • QE style placeholders with edit links now possible via the [+#item+] syntax
                      • Tags now support multiple tagData sources in a comma delimited fashion and the [+tags+] placeholder for a nice tag list
                      • It is now possible to have multiple Ditto calls with url based features on one page thanks to the id parameter which assigns a unique ID to each Ditto instance
                      • A new config architecture allowing users to create config files in the config directory with the simple php variable syntax
                      • Added new @bindings for templates including @CODE: and @FILE: for their respective purposes
                      • New formats including XML and ATOM
                      • Parents and documents options now available, start ID deprecated (will still work though...)
                      • Added between filtering for dates for use in conjunction with Reflect based archives or custom links