Параметры вызова сниппета Ditto

Сайт спиппета Ditto, после редизайна основного сайта MODx как то затерялся на просторах интернет, большая часть первых ссылок в поиске ведёт на переводные статьи ,к сожалению не полные ...

Русское описание параметров и плэйсхолдеров на modx-cms.ru

Описание на английском вики , русский вики ограничился примером.

Так вот оригинал здесь: ditto.modxcms.com

Отличный вариант документации для ditto от myfriendscallmebill  выложен на форуме modx

Копия описания параметров с оригинального сайта:

Ditto Snippet Aggregates documents to create blogs, article/news collections, and more,with full support for templating.
Parameters  
ditto_base Location of Ditto files
id Unique ID for this Ditto instance for connection with other scripts (like Reflect) and unique URL parameters
language language for defaults, debug, and error messages
format Output format to use
config Load a custom configuration
debug Output debugging information
phx Use PHx formatting
extenders Load an extender which adds functionality to Ditto
Variables  
extenders Array that can be added to by configs or formats to load that extender
placeholders Initialize custom placeholders array for configs or extenders to add to
filters Holds both the custom filters array for configs or extenders to add to and the parsed filters array.
orderBy An array that holds all criteria to sort the result set by.
idType type of IDs provided; can be either parents or documents
Parameters  
parents IDs of containers for Ditto to retrieve their children to &depth depth
documents IDs of documents for Ditto to retrieve
Variables  
IDs Internal variable which holds the set of IDs for Ditto to fetch
Parameters  
depth Number of levels deep to retrieve documents
paginate Paginate the results set into pages of &display length.
dateSource Source of the placeholder
dateFormat Format the placeholder in human readable form
display Number of documents to display in the results
total Number of documents to retrieve
showPublishedOnly Show only published documents
showInMenuOnly Show only documents visible in the menu
hideFolders Don’t show folders in the returned results
hidePrivate Don’t show documents the guest or user does not have permission to see
seeThruUnpub See through unpublished folders to retrive their children Used when depth is greater than 1
queryLimit Number of documents to retrieve from the database, same as MySQL LIMIT
where Custom MySQL WHERE statement
noResults Text or chunk to display when there are no results
removeChunk Name of chunks to be stripped from content separated by commas
hiddenFields Allow Ditto to retrieve fields its template parser cannot handle such as nested placeholders and [fields]
start Number of documents to skip in the results
globalFilterDelimiter Filter delimiter used to separate filters in the filter string
localFilterDelimiter Delimiter used to separate individual parameters within each filter string
filter Removes items not meeting a critera.
keywords Enable fetching of associated keywords for each document Can be used as or as a tagData source
randomize Randomize the order of the output
save Saves the ditto object and results set to placeholders for use by other snippets
tpl User defined chunk to format the documents
tplAlt User defined chunk to format every other document
tplFirst User defined chunk to format the first document
tplLast User defined chunk to format the last document
tplCurrentDocument User defined chunk to format the current document
orderBy Sort the result set
paginateAlwaysShowLinks Determine whether or not to always show previous next links
paginateSplitterCharacter Splitter to use if always show is disabled
tplPaginatePrevious Template for the previous link
tplPaginateNext Template for the next link
tplPaginateNextOff Template for the inside of the next link
tplPaginatePreviousOff Template for the previous link when it is off
tplPaginatePage Template for the page link
tplPaginateCurrentPage Template for the current page link
Placeholders  
item[x] Individual items rendered output
Последнее изменение документа: 27 Январь 2012