tplComments
Last updated Mar 6th, 2021 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreQuip's tplComments Chunk¶
This is the Chunk displayed with the &tplComments property on the Quip.Quip snippet. Only applicable when &useWrapper is set to 1 in the Quip snippet (which it is by default).
This chunk wraps the comments for a thread, and provides a heading with the total number of comments.
Default Value¶
<div class="quip">
<h3>[[%quip.comments]] ([[+total]])</h3>
<div id="quip-topofcomments-[[+idprefix]]"></div>
[[+comments:notempty=`<ol class="quip-comment-list">
[[+comments]]
</ol>`]]
[[+pagination]]
</div>
Available Placeholders¶
Name | Description |
---|---|
comments | The comments for the thread. |
total | The total number of comments for this thread. |
idprefix | The ID prefix for the thread's comments. |