I have this basic setup for comments and a comment form:
<h2>Comments</h2>
<p>{exp:comment:entries channel="blog"}<br />
{if comments_disabled}Commenting is not available for this entry.{/if} <br />
{if no_results}No comments have been posted yet!{/if}<br />
<div class="comments"><br />
<div>{url_as_author} <span>— {comment_date format="%F %d, %Y"}</span></div><br />
<div>{comment}</div><br />
</div>{/exp:comment:entries}<br />
</p><h2>Make a comment</h2>
<p>{exp:comment:form channel="blog"}<br />
... form code here ...<br />
{/exp:comment:form}If I disable comments in a particular blog post, I was hoping that
{if comments_disabled}Commenting is not available for this entry.{/if}would kick in, but it doesn’t. So I get a comment that nothing’s been posted yet, then the Make a Comment heading, and a default message from the system:
Commenting is not available in this channel entry.
Am I doing something wrong here?
What I’d really like is that, if comments are disabled for an entry, I’d just get the title “comments” and then the comments_disabled message.
Thanks for any suggestions. 😊