Ditto call to display documents by author

/ Published in: PHP
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. [!Ditto? &parents=`12` &filter=`createdby,1,1` &tpl=`blog-post` &display=`10` !]

URL: http://www.modxcms.com

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.