Skip to content
  1. Extras
  2. Tickets
  3. Snippets
  4. TicketComments

TicketComments

Outputs comments and the form of the commenting on resource.

TIP

Can be used with any MODX document.

Snippet is caused uncashed.

Parameters of the snippet's call

NameBy defaultDescription
&allowGuest0To activate commenting for unauthorized users?
&allowGuestEdit1To allow unauthorized users to edit their comments?
&allowGuestEmails0To send the guests mail notifications about the answers?
&autoPublish1To publish automatically all the new comments without any premoderation.
&autoPublishGuest1To publish automatically all the new comments of the unauthorized users without any premoderation.
&depth0Integer for indicating maximum depth of the comment branch.
&enableCaptcha1To activate protection from spam for unauthorized users?
&fastMode1If activated - values from DB only will be fitted in the result chunk. All the unprocessed tags MODX, such as filters, snippet output and others - will be cut.
&formBefore0To place form of the commenting before comments. No by default.
&toPlaceholderIf it is not empty, snippet will save all the data in placeholder with the very name instead of displaying on the screen.
&separatePlaceholder0При параметре 1 вывести форму и комментарии в плейсхолдеры toPlaceholder_form, toPlaceholder_thread.
&gravatarIconmmIf user's profile picture is not found - to load this picture for the replacement.
&gravatarSize24Profile picture size loaded.
&gravatarUrlhttp://www.gravatar.com/avatar/Download location for profile pictures.
&maxCaptcha10Maximum number for generation of the code which protects from spam.
&minCaptcha1Minimum number for generation of the code which protects from spam.
&threadName of the comment branch. resource-[[*id]] by default.
&tplCommentAuthtpl.Tickets.comment.one.authComment chunk to show to authorized user.
&tplCommentDeletedtpl.Tickets.comment.one.deletedChunk of the deleted comment.
&tplCommentEmailBcctpl.Tickets.comment.email.bccChunk for notification of the web-sites admins about new comment.
&tplCommentEmailOwnertpl.Tickets.comment.email.ownerChunk for notification of the ticket's owner about new comment.
&tplCommentEmailReplytpl.Tickets.comment.email.replyChunk for notification of the user that a response to his comment has appeared.
&tplCommentEmailSubscriptiontpl.Tickets.comment.email.subscriptionChunk for notification of subscribed user that a new comment has appeared in the theme.
&tplCommentFormtpl.Tickets.comment.formChunk for form of the new comment to add.
&tplCommentFormGuesttpl.Tickets.comment.form.guestChunk for form of the new comment to add for quests.
&tplCommentGuesttpl.Tickets.comment.one.guestComment chunk for quests to show.
&tplCommentstpl.Tickets.comment.wrapperChunk wrapper for all the comments of the page.
&tplLoginToCommenttpl.Tickets.comment.loginChunk with the requirement to authorize.

Examples

  • Standard snippet call
modx
[[!TicketComments]]
  • Snippet call with the comments for unauthorized.
modx
[[!TicketComments? &allowGuest=`1`]]