Skip to content

Commit 5157b61

Browse files
authored
better example of comment form
Closes ExpressionEngine/ExpressionEngine#2415
1 parent 34fc219 commit 5157b61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/comment/form.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ The comment submission form is created very similar to a standard web form, only
3535

3636
<input type="submit" name="submit" value="Submit" />
3737
<input type="submit" name="preview" value="Preview" />
38+
39+
{!-- required to prevent EE from outputting form if commenting is disabled or expired --}
40+
{if comments_disabled}{/if}
41+
{if comments_expired}{/if}
3842

3943
{/exp:comment:form}
4044

0 commit comments

Comments
 (0)