[SOLVED] CGFeedback No Comments Message
Posted: Thu Oct 07, 2010 11:48 pm
Hi,
I'd like to print a message if there are no comments; for example: "There are currently no comments for this article."
I thought it would go in my summary template:
However, it seems that this template isn't called if there are no comments...
Has anyone done anything similar to this?
Regards,
Rich
I'd like to print a message if there are no comments; for example: "There are currently no comments for this article."
I thought it would go in my summary template:
Code: Select all
{if isset($comments)}
{foreach from=$comments item='one'}
<div class="comment">
<p class="commentTitle">{$one.author_name}</p>
<p class="commentDate">{$one.created|date_format:"%d %B %Y"}</p>
<p class="commentDescription">{$one.data|htmlspecialchars}</p>
</div>
{/foreach}
{/if}
Has anyone done anything similar to this?
Regards,
Rich