Carma comments form
From TMM Wiki
Jump to navigationJump to searchcarma_comments_form
Display a form for members to add comments about a content set.
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
galid | add comments to this gallery | Any valid gallery I.D. number | None. | galid="123" |
tpl | Display comments using this template | Any valid template name | comments_display (Display comments using the comments_display template) | tpl="my_template" |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
assign | Name of the Smarty variable that stores the output | Any valid Smarty variable name | None. Output is displayed, not stored | assign="my_var" |
max | The maximum number of comments a member may make in one period, described below. | Any whole number greater than or equal to zero | 5 | max="7" |
time | the length of a period in seconds. | Any whole number greater than or equal to zero | 1800 | time="600" |
display_on_assign | Display comments even when the assign parameter (above) is used | 1 | None If assign is used, no comments are displayed | display_on_assign=1 |
Example
{carma_comments_form galid=2}
Output
Display the comments_form template so members can submit their comments about a specific content set.