0

I have implemented a blog with orchard and now I need to get view count of posts. Goal is:

  • get 5 top viewed post in a list
  • display view count on each blog post

I have tried various solution but so fore none works, view count is always 0.

Not working for me (on 1.6)

Does anybody has successfully used or implemented this functionality? Thanks

Edit: I see this error in logs (no idea what module may have caused it)

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)
4

1 に答える 1

1

コンテンツ ビュー カウンターが機能しない理由がわかりません。

とにかく私はそれを無効にすることができ、インストールしました:http://gallery.orchardproject.net/List/Modules/Orchard.Module.ViewCount

この2番目のものは、モジュールページの指示に従って機能します。

貴重なコメントとヘルプをくれた Hazza に感謝します。

ハッピーオーチャーディング...

于 2013-04-27T23:13:55.807 に答える