Skip to content

Commit 2ccc990

Browse files
authored
Merge pull request #613 from ExpressionEngine/feature/7.x/better-comment-form-example
better example of comment form
2 parents 34fc219 + 935a7f1 commit 2ccc990

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}Comments on this entry are currently disabled.{/if}
41+
{if comments_expired}Commenting on this entry has expired.{/if}
3842

3943
{/exp:comment:form}
4044

0 commit comments

Comments
 (0)