Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tridion 我如何在页面/组件上找到已调整的评论数_Tridion_Ugc - Fatal编程技术网

Tridion 我如何在页面/组件上找到已调整的评论数

Tridion 我如何在页面/组件上找到已调整的评论数,tridion,ugc,Tridion,Ugc,我从Item Statistics字段的numberOfComments中获取评论数值,但返回评论总数 请任何人帮助我,我如何才能在UGC中只找到经过审核的评论数?AFAIK目前无法直接找到,但您可以只允许经过审核的评论,然后像这样进行计数 <ugc:ForEachComment runat="server"> <% HttpContext.Current.Items["Count"] = Convert.ToInt32(HttpContext.Current.I

我从Item Statistics字段的numberOfComments中获取评论数值,但返回评论总数


请任何人帮助我,我如何才能在UGC中只找到经过审核的评论数?

AFAIK目前无法直接找到,但您可以只允许经过审核的评论,然后像这样进行计数

   <ugc:ForEachComment runat="server">
    <% HttpContext.Current.Items["Count"] = Convert.ToInt32(HttpContext.Current.Items["Count"]) + 1; %>
            </ugc:ForEachComment>


希望它能对您有所帮助。

它可以正常工作,但它应该有一些属性变量来查找被审核评论的数量