Outputs the list of approved comments for a resource.
Important: call it uncached ([[!XcommThread]]), otherwise the comments will not update.
Parameters
| Parameter | Default | Description |
|---|---|---|
resource | [[*id]] | Resource ID |
block_key | default | Block key (must match Xcomm3x) |
tpl | xcomm3x_comment_item | Chunk of one comment |
outerTpl | xcomm3x_thread_outer | Thread wrapper chunk |
replyBtnTpl | xcomm3x_reply_btn | “Reply” button chunk |
editBtnTpl | xcomm3x_edit_btn | “Edit” button chunk |
deleteBtnTpl | xcomm3x_delete_btn | “Delete” button chunk |
loadMoreTpl | xcomm3x_load_more | “Load more” button chunk |
noCommentsTpl | xcomm3x_no_comments | Empty state chunk |
limit | 0 | Root comments per page (0 = all). The “Load more” button appears only when limit > 0 |
Call — default theme
[[!XcommThread? &limit=`10`]]
Call — Bootstrap 5
[[!XcommThread?
&tpl=`xcomm3x_bs5_comment_item`
&outerTpl=`xcomm3x_bs5_thread_outer`
&replyBtnTpl=`xcomm3x_bs5_reply_btn`
&editBtnTpl=`xcomm3x_bs5_edit_btn`
&deleteBtnTpl=`xcomm3x_bs5_delete_btn`
&loadMoreTpl=`xcomm3x_bs5_load_more`
&noCommentsTpl=`xcomm3x_bs5_no_comments`
&limit=`10`
]]
Call — UIKit 3
[[!XcommThread?
&tpl=`xcomm3x_uk3_comment_item`
&outerTpl=`xcomm3x_uk3_thread_outer`
&replyBtnTpl=`xcomm3x_uk3_reply_btn`
&editBtnTpl=`xcomm3x_uk3_edit_btn`
&deleteBtnTpl=`xcomm3x_uk3_delete_btn`
&loadMoreTpl=`xcomm3x_uk3_load_more`
&noCommentsTpl=`xcomm3x_uk3_no_comments`
&limit=`10`
]]