我已经实施了果园博客,现在我需要查看帖子数。 目标是:果园博客,获取查看次数
- 得到5顶部看帖子列表中的
- 显示器的观看次数上每篇博客文章
我尝试了各种解决方案,但如此前没有工作,查看次数始终为0 。
不是为我工作(在1.6)
全光照摹投票模块(不知道如何使用,没有文档) https://orchardvoting.codeplex.com/documentation
内容的观看次数(通常为0) http://gallery.orchardproject.net/List/Modules/Orchard.Module.NGM.ContentViewCounter
顶视图(总是相同的最高职位为0) http://gallery.orchardproject.net/List/Modules/Orchard.Module.galgodage.TopViews
有没有人成功使用或实现过这个功能? 感谢
编辑: 我看到在日志中此错误(不知道是什么模块可能造成它)
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)
投票模块没有内在的功能,它仅仅是一个对其他模块具有存储价值的地方的方式。您是否将ContentViewCounterPart附加到博客文章内容类型?并安装投票。 – Hazza 2013-04-25 00:19:40
投票已安装,但我没有要添加的零件清单中的ContentViewCounterPart ... – manudea 2013-04-25 07:32:05
UserViewPart对不起 – Hazza 2013-04-26 01:33:41