Module 乌节博客,获取浏览量

Module 乌节博客,获取浏览量,module,blogs,orchardcms,Module,Blogs,Orchardcms,我已经用orchard实现了一个博客,现在我需要获得文章的浏览量。 目标是: 在列表中获得5个最受欢迎的帖子 显示每个博客文章的查看次数 我尝试过各种解决方案,但由于没有一种有效,所以视图计数始终为0 不为我工作(1.6) 使用投票模块(不知道如何使用,没有文档) 内容视图计数(始终为0) 俯视图(始终与0位于同一顶柱上) 是否有人成功地使用或实现了此功能? 谢谢 编辑: 我在日志中看到这个错误(不知道是哪个模块导致的) Orchard.DisplayManagement.Impl

我已经用orchard实现了一个博客,现在我需要获得文章的浏览量。 目标是:

  • 在列表中获得5个最受欢迎的帖子
  • 显示每个博客文章的查看次数
我尝试过各种解决方案,但由于没有一种有效,所以视图计数始终为0

不为我工作(1.6)

  • 使用投票模块(不知道如何使用,没有文档)

  • 内容视图计数(始终为0)

  • 俯视图(始终与0位于同一顶柱上)

是否有人成功地使用或实现了此功能? 谢谢

编辑: 我在日志中看到这个错误(不知道是哪个模块导致的)

Orchard.DisplayManagement.Implementation.DefaultDisplayManager
由从操作“1”引发的RuntimeBinderException
System.Action`1[[Orchard.DisplayManagement.Implementation.ShapeDisplayContext,
Framework,Version=1.6.0.0,Culture=neutral,PublicKeyToken=null]]
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException:
无法隐式转换类型
“Orchard.ContentManagement.ContentPart”中的“Orchard.Modules.Models.ModuleEntry”
中的目标(闭包、调用站点、对象)
Orchard.DesignerTools.Services.WidgetAlternatesFactory。
中的b__5(ShapeDisplayingContext displayedContext)
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.c\uuu DisplayClassc。
b__5(行动` 1行动)

我不知道为什么内容视图计数器对我不起作用

无论如何,我已成功禁用它,并已安装:

按照模块页面上的说明,第二个模块可以工作

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


快乐果园…

投票模块没有固有的功能,它只是其他模块有一个存储值的地方的一种方式。您是否将ContentView对应项附加到博客文章内容类型?和安装投票。投票已安装,但我在要添加的部件列表中没有ContentViewPart…也没有UserViewPart。当您安装此模块OK、卸下模块并再次安装时,它应该可用。在博客文章中添加了UserViewPart。然后我浏览了这个网站,查看了一些帖子。BlogPost有Userview部分,该部分有一个名为TotalViews的属性。。。总是0。我需要做的不仅仅是添加UserViewPart吗?
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)