XcommThread

Xcomm3x1 min readPage 4 of 11
On this page 4

Outputs the list of approved comments for a resource.

Important: call it uncached ([[!XcommThread]]), otherwise the comments will not update.

Parameters

ParameterDefaultDescription
resource[[*id]]Resource ID
block_keydefaultBlock key (must match Xcomm3x)
tplxcomm3x_comment_itemChunk of one comment
outerTplxcomm3x_thread_outerThread wrapper chunk
replyBtnTplxcomm3x_reply_btn“Reply” button chunk
editBtnTplxcomm3x_edit_btn“Edit” button chunk
deleteBtnTplxcomm3x_delete_btn“Delete” button chunk
loadMoreTplxcomm3x_load_more“Load more” button chunk
noCommentsTplxcomm3x_no_commentsEmpty state chunk
limit0Root 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`
]]