Return to Snippet

Revision: 14149
at May 20, 2009 12:00 by villagecreative


Initial Code
[!Ditto? &parents=`12` &filter=`createdby,1,1` &tpl=`blog-post` &display=`10` !]

Initial URL
http://www.modxcms.com

Initial Description
This Ditto snippet call does the following:
Parses through all the documents that have the parent document with the ID #12 (change this to reflect the id of the parent doc you are working with).
Filters out any documents that were not created by the author with the id of 1. The format is &filter=`createdby,userID,1(not equal to)`.
Formats the output using the chunk "blog-post" as a template.
Displays 10 documents this way.

Initial Title
Ditto call to display documents by author

Initial Tags

                                

Initial Language
PHP