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
    This is the final internal build before public release as RC1.

    As usual, please test and report any bugs here. Thanks!

    Changes from 2.0 Beta 2:


    [2007-2-4: REVISION 0000]
    [CHANGED] Reflect source code order and comments

    [2007-2-7: REVISION 0000]
    [NEW] Save option 3
    [CHANGED] Reflect to obey save option 3
    [CHANGED] Added if function exists statements to custom placeholders declarations
    [CHANGED] getDocuments parameters order and fields are now given as an array
    [NEW] prefetch variable now contains the data array fetched by the prefetcher when true

    [2007-2-9: REVISION 0000]
    [FIXED] Server offset is now applied to the date placeholder

    [2007-2-10: REVISION 0000]
    [CHANGED] Reflect Ditto ID detection
    [REMOVED] Save = 0 restraint on pagination
    [NEW] Data is now saved and reused from the prefetcher
    [FIXED] Prefetcher field parsing error
    [REMOVED] if function exists statements to custom placeholders declarations

    [2007-2-11: REVISION 0000]
    [CHANGED] Ditto snippet source code order

    [2007-2-12: REVISION 0000]
    [NEW] Server offset is applied to format date placeholders
    [FIXED] Filtering + Prefetch now work correctly together
    [CHANGED] #ID keys are now preserved in the getDocuments function

    You can checkout a copy from SVN here: http://svn3.cvsdude.com/ditto/codebase/branches/2.0/
    You can file bugs here: http://mirror3.cvsdude.com/trac/ditto/codebase
    Or via a weblink @ http://www.modxcms.com/ditto

    There is a zipped SVN export attached to this post for internal testing purposes only.
      • 25663 MODX Staff
      • 12,272 Posts
      Great stuff Mark... looking forward to a public beta and getting this in the next release (hopefully!). smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 11975
        • 2,542 Posts
        Hi Mark,

        the zip is empty smiley

          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 25663 MODX Staff
          • 12,272 Posts
          Hi ... I just exported a new copy from his SVN instructions and attached to his post. Try that one. smiley
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 11975
            • 2,542 Posts
            Thx Ryan

            I did the same and took a copy directly from the svn

            :-)
              Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
              • 11975
              • 2,542 Posts
              Hi Mark,

              The issue about $ditto->prefetch does not appear any more in this version.

              I’ll have two request:

              1/ could you please consider to add these changes in buildUrl function line 727

              $queryString .= ’&’.$param.’=’.(is_array($value) ? implode(",",$value) : $value);

              I need this to make ditto and tvExplorer be compatible.

              2/ About the filter delimiter it would be really handy to be able to specify its own delimiter to avoid conflict beetwen dellimited list widget and ditto (parseFilter function)


              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 18397
                • 3,250 Posts
                Ok, updated the SVN with helio’s and a few other minor changes.


                Make sure you change this line before using:

                $ditto_base = $modx->config['base_path']."ditto/assets/snippets/ditto/";
                


                Removing the extra ditto in the path
                  • 11975
                  • 2,542 Posts
                  thx smiley
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 18397
                    • 3,250 Posts
                    Zip updated
                      • 18397
                      • 3,250 Posts
                      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
                      • 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