English
Appearance
Renders a comment thread and submit form. Works with tickets and any MODX resource.
Call uncached: [[!TicketComments]].
[[!TicketComments]]
Multiple threads on one page: set different &thread= values. Each wraps in <div class="comments-thread" id="...">.
&thread=
<div class="comments-thread" id="...">
resource-[[*id]]
1
0
limit
offset
tree=1
TicketComment.id
ASC
DESC
{toPlaceholder}_form
{toPlaceholder}_thread
mgr
name,email
10
tickets_source_default
mm
24
https://www.gravatar.com/avatar/
tpl.Tickets.comment.wrapper
[[+total]]
TicketThread
tpl.Tickets.comment.form
tpl.Tickets.comment.form.guest
tpl.Tickets.comment.one.auth
tpl.Tickets.comment.one.guest
tpl.Tickets.comment.one.deleted
tpl.Tickets.comment.login
tpl.Tickets.comment.email.owner
tpl.Tickets.comment.email.reply
tpl.Tickets.comment.email.subscription
tpl.Tickets.comment.email.bcc
tpl.Tickets.comment.email.unpublished
tpl.Tickets.comment.form.files
tpl.Tickets.form.file
tpl.Tickets.form.image
text
List snippets link comment counts to #first_unread or #comments since 1.14.0.
#first_unread
#comments
{'!TicketComments' | snippet}
{'!TicketComments' | snippet : [ 'allowGuest' => 1, 'autoPublishGuest' => 0, ]}
[[!TicketComments? &allowGuest=`1` &autoPublishGuest=`0`]]
{'!TicketComments' | snippet : [ 'tree' => 0, 'limit' => 20, 'offset' => 0, ]}
[[!TicketComments? &tree=`0` &limit=`20` &offset=`0`]]
{'!TicketComments' | snippet : [ 'thread' => 'sidebar-' ~ $_modx->resource.id, ]}
[[!TicketComments? &thread=`sidebar-[[*id]]`]]
TicketComments
Renders a comment thread and submit form. Works with tickets and any MODX resource.
Call uncached:
[[!TicketComments]].Multiple threads on one page: set different
&thread=values. Each wraps in<div class="comments-thread" id="...">.Parameters
resource-[[*id]]11nested replies;0flat list withlimit/offsetpagination00= unlimited whentree=1)TicketComment.idASCASCorDESC00= all0101puts form in{toPlaceholder}_form, list in{toPlaceholder}_thread00mgrsession0010name,email11111000tickets_source_defaultmm24https://www.gravatar.com/avatar/tpl.Tickets.comment.wrapper[[+total]]fromTicketThreadtpl.Tickets.comment.formtpl.Tickets.comment.form.guesttpl.Tickets.comment.one.authtpl.Tickets.comment.one.guesttpl.Tickets.comment.one.deletedtpl.Tickets.comment.logintpl.Tickets.comment.email.ownertpl.Tickets.comment.email.replytpl.Tickets.comment.email.subscriptiontpl.Tickets.comment.email.bcctpl.Tickets.comment.email.unpublishedtpl.Tickets.comment.form.filestpl.Tickets.form.filetpl.Tickets.form.imagetext; see TicketFormitList snippets link comment counts to
#first_unreador#commentssince 1.14.0.Examples
Default
Guests with moderation
Flat list
Second thread on the page