English
Appearance
Comment list from the database via pdoFetch. For feeds, widgets, and thread filters.
Call uncached.
tpl.Tickets.comment.list.row
tpl.Tickets.comment.one.deleted
-id
10
parents
0
createdon
DESC
content
1
output
mgr
Подсказка
The list can be extended with the common parameters of pdoTools, since Tickets is built on that library.
{'!pdoPage' | snippet : [ 'element' => 'getComments', 'parents' => 5, 'limit' => 10, ]} {$_modx->getPlaceholder('page.nav')}
[[!pdoPage? &element=`getComments` &parents=`5` &limit=`10` ]] [[!+page.nav]]
{'!getComments' | snippet : [ 'parents' => 5, 'limit' => 5, 'sortby' => 'createdon', 'sortdir' => 'DESC', ]}
[[!getComments? &parents=`5` &limit=`5` &sortby=`createdon` &sortdir=`DESC` ]]
getComments
Comment list from the database via pdoFetch. For feeds, widgets, and thread filters.
Call uncached.
Parameters
tpl.Tickets.comment.list.rowtpl.Tickets.comment.one.deleted-idexcludes-idexcludes10parents100createdonDESC0contentfields100outputplaceholder0mgrПодсказка
The list can be extended with the common parameters of pdoTools, since Tickets is built on that library.
Examples
Feed with pagination
Latest comments in a section