P
P
Pashchuk Ilya2015-08-13 22:09:17
1C-Bitrix
Pashchuk Ilya, 2015-08-13 22:09:17

Why is the number of comments not showing?

I can't understand why, the number of comments to the "news" infoblock entry is not displayed
Here is the code

<li class="post__icon post__icon--comments">Comments / <span><?=(strlen($arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"]) > 0 
? $arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"] : "0");?></span></li>
what tips

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Novikov, 2015-10-14
@dmitriy_novikov

check if there is anything in $arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"]
<pre>
<?print_r($arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"])?>
</ pre>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question