Ditto aggregates documents to create blogs, article/news collections, and more, with full support for templating.
It lists data from documents to create output in many formats. You can specify which documents, you can specify what data, and you can specify the layout of that data. It is the offspring of NewsListing, but was given a snappier name as it doesn't just list news.
Official documentation is available at http://ditto.modxcms.com
Examples of Usage
[!Ditto? &parents=`183`&orderBy=`createdon ASC` &display=`5` &total=`5` &tpl=`story_summary`!]
Note: The above example uses Ditto 2.1 parameters. Ditto 2.0 replaced &startID with &parents and &documents, both of which can be comma-separated lists, and &summarize was replaced by &display. Ditto 2.1 replaced &sortBy and &sortDir with &orderBy, combining data for both and allowing for sub-sorting using a comma-separated list.
Above example using Ditto 1 parameters would read:
[!Ditto? &startID=`183`&sortBy=`createdon` &sortDir=`ASC` &summarize=`5` &total=`5`&tpl=`story_summary`!]
In this example, there's a Chunk named "story_summary" that looks like this:
- Ditto 2.1 parameters
- Ditto 2.1 extender parameters
- Ditto 2.1 placeholders
- Ditto Parameters (Ditto 1)
- Ditto Placeholders (Ditto 1)
Read more tutorials at http://ditto.modxcms.com/tutorials.html
Other Documentation Sources
- Ditto Subforum (modxcms.com forum)
- Pogwatch Ditto 2.1 documentation and usage examples
- Ditto 2.0.1 compiled documentation by myfriendscallmebill (modxcms.com forum)
- Ditto 1.0.2 Documentation (modxcms.com)
- Ditto 1.0.2 Parameters (modxcms.com)