私はデフォルトのコメントモジュールをテストしていて、コメントブロックの上のチャンネルエントリタグで{comment_total}を使用すると、そのブログ投稿に対するコメントの総量が表示されることに気づきました。 、5件、合計10件のコメントが表示されます。開いているコメントの合計のみを表示するには、どうすればフィルタリングできますか?私は以下のコードのいくつかを含んでいます。私は毎週チャンネルエントリの統計を取り上げて再カウントすることはできません。私はそれを開始する必要があります - ただ{ステータス}を[コメント]に表示するだけです。
{exp:channel:entries channel="blog" limit="1" status="Open"}
{head}
There are {comment_total} comments on this post. Skip to comments »
Submit a comment:
{!-- comment form tag is here --}
{embed="view/.commentview"}
{!-- .commentview embed contains the display of all comments associated with this post --}
</body>
</html>
{/exp:channel:entries}