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
:-)
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
Update the SVN to fix the issue kylej found. Any other issues?
Ok, just updated the documentation to include Reflect parameters and removed all tv prefix references.
-
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
Ok, updated the code to fix UTF-8, randomize, start, and a few other issues.
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