Ditto has some good but not simple documentation:
http://ditto.modxcms.com/
Check out the parameter section and you will see all that you can do.
Here is a sample simple ditto call:
[!Ditto? &parents=`12` &display=`all` &sortBy=`LastName` &sortDir=`ASC` &tpl=`dtTpl`!]
In this call we are listing the documents within the parent 12, and we want to display all the documents, we are sorting by a TV called LastName ASCending and using the dtTpl chunk to display the results. In this chunk we have the display template using placeholders to add the data. Ditto will then loop through the docs and display the data according to the tpl.
Here is a sample tpl from the MODx demo site:
<div class="ditto_summaryPost">
<h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>
<div class="ditto_info" >By <strong>[+author+]</strong> on [+date+]. <a href="[~[+id+]~]#commentsAnchor">Comments
([!Jot?&docid=`[+id+]`&action=`count-comments`!])</a></div><div class="ditto_tags">Tags: [+tagLinks+]</div>
[+summary+]
<p class="ditto_link">[+link+]</p>
</div>
Notice how the placeholders were used to add the data from the documents retrieved in Ditto.