30Blog

ZBlog development tutorial: article comment number judgment

When developing ZBlog topics, what should I do if I want to judge the number of comments on the current article.

The following code can perfectly judge the number of ZBlog comments:

 {if $article.CommNums==0} No message {elseif $article.CommNums==1} Only 1 message {else} There are {$article. CommNums} messages {/if}


QQ pre-sales consultation