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