C
O
M
M
E
N
T

<-- Back to Tags

{COMMENT(obj_id, options, login-text)}

This command is essentially a shortcut to the {RENDER_TREE()} Command with a few additional features.


The actual code generated for this command when a user is logged in is:

{RENDER_TREE({POID}, 0, 57, 0, 1)}
<div class="py-1">{INPUT_NEW({POID}, 2, #New_Comment, 110, fa-comment, btn btn-primary btn-sm noprint, -2, {"title":"Add a comment"})}</div>
<div style="display:none;" id="New_Comment"></div>

Parameters
Number Name Default Type Description
1 obj_id Current Page ID Integer The root object ID
2 options 1 Integer Options:
1 = Allow Visitors to View Comments
3 login-text String

The text to display if the user is not logged in.

The default for this will be different depending on weather visitors are allowed to view comments.

Either :
Login to add a comment.
or:
Login to view or add Comments.

4 new_title Add a comment String New Comment Button Title Text
Log in to add a Comment.