Project:Taxonews
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:fgm
Status:closed (fixed)

Issue Summary

Hi, first of all, I really like your module! However, I was wondering whether it is possible to list te most viewed entries from a taxonomy category?

Comments

#1

Category:support request» feature request

As usual everything is possible. But it is not currently part of the feature set of the module: you're welcome to add the feature.

It shouldn't be too difficult:

  • add the dependency of statistics to have access to node_counter
  • check whether node counters are actually active
  • add a setting to enable such ranking as an alternative to the default ordering
  • create a specific query with FROM node n INNER JOIN node_counter nc on n.nid = nc.nid to have access to the view counters
  • order by the counters

What must be done, though, is make sure this path is only taken for sites wishing to take advantage of the feature, because it makes the query a bit slower.

#2

Assigned to:Anonymous» fgm
Status:active» fixed

Feature added in versions 1.10.6.2 and 1.10.6.3. Module now has 3 sorting modes, 2 of which are only available when statistics.module is enabled.

#3

Status:fixed» closed (fixed)
nobody click here