Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I'd like to create a simple view called "The most popular [nodes] for the last X days". I'd like this view to count only the votes, submitted during previous X days, and not from the 0 A.D.
I've tried using the Voting API timestamp filter, but it just filters the nodes that were voted on within a certain time period, still showing the full sum of votes, which is useless in my case.
Does anyone know how to solve the problem? Thanks a lot!
Comments
Comment #1
eaton CreditAttribution: eaton commentedThere's currently no way to do that using the VotingAPI/views integration as it stands. It should be a relatively straightforward task using a bit of SQL, however.
Comment #2
alesel CreditAttribution: alesel commentedHas anybody a right code of this for Drupal 7?
Thx!