Forum OpenACS Q&A: Most popular

Collapse
Posted by Malte Sussdorff on
Before I dig around in the code:

Which packages are using the "views" code to enable "most popular" page(s) or objects viewed?

Has this been integrated into XoWiki?

Collapse
2: Re: Most popular (response to 1)
Posted by Gustaf Neumann on
xowiki has its own table to track usage of xowiki pages (per person, per package). See:
http://www.openacs.org/xowiki/en/demo-includelets

Since an xowiki page can include adp, it should be straightforward to use the view package and include views/lib/view-chunk.

Collapse
3: Re: Most popular (response to 1)
Posted by Dave Bauer on
Gustaf, xowiki would need to record views.

This is easily accomplished by passing the property name="diplayed_object_id" in the xowiki template.

It makes more sense to record all the views in the same place for all objects.

Here is what I found on OpenACS 5.2:

bug-tracker
bookshelf
acs-subsite (user page)
file-storage (although I think it does not work on download only viewing a files details page)
forums
lars-blogger
lors-central
photo-album
static-pages

For HEAD I found:

contrib/cop-base (in contrib)
contrib/survey
acs-subsite
calendar
bug-tacker
bookshelf
faq
file-storage
forums
lars-blogger
lors-central
photo-album
lab-report
curriculum-tracker
static-pages

It is simple to activate a new package, just add the property to the page that displays one object.

I recently added an include called "record-view" to the views package to be added to the default master template that will record a view is displayed_object_id is set. The COP packages which originally used views included a sidebar that handled the recording, but this should make it easier to integreate view tracking into any site.

xowiki