果园博客,获得视图计数

时间:2013-04-24 10:10:13

标签: module blogs orchardcms

我已经在果园实施了博客,现在我需要查看帖子的查看次数。 目标是:

  • 在列表中获得5个最受欢迎的帖子
  • 在每篇博文上显示查看次数

我尝试了各种解决方案但是前所未有的方法,视图计数总是为0。

不适合我(1.6)

是否有人成功使用或实施了此功能? 感谢

编辑: 我在日志中看到了这个错误(不知道是什么模块可能导致它)

Orchard.DisplayManagement.Implementation.DefaultDisplayManager
RuntimeBinderException thrown from Action`1 by   
System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayingContext, 
Orchard.Framework, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null]]
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException:
Can not implicitly convert type
'Orchard.Modules.Models.ModuleEntry' in 'Orchard.ContentManagement.ContentPart' 
in CallSite.Target(Closure , CallSite , Object ) in
Orchard.DesignerTools.Services.WidgetAlternatesFactory.
<Displaying>b__5(ShapeDisplayingContext displayedContext) in 
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.<>c__DisplayClassc.
<Execute>b__5(Action`1 action)

1 个答案:

答案 0 :(得分:1)

我不知道为什么内容浏览计数器对我不起作用。

无论如何,我已设法禁用它,我已安装:http://gallery.orchardproject.net/List/Modules/Orchard.Module.ViewCount

第二个按照模块页面上的说明工作。

非常感谢Hazza的宝贵意见和帮助。

快乐的果园......

相关问题