Most of the work for this module was already in place, see [https://github.com/marcanuy/Joomla-Most-Popular] The adaptations that I've made are too allow drop in replacement of the core mod_articles_popular layouts (so that overrides for things like Joomlart templates can be used).
This is an extension for the Joomla CMS. It allows to display a list of the most popular articles within a specific date range.
-
Date ranges
- Last day
- Last 7 days
- Last 30 days
- All time
-
Show articles from all categories or selected categories only
-
Show each article hit stats.
-
Include/exclude featured articles
-
Filter articles by Joomla language
- A packed stable version is available at Project Homepage
- Go to your site Administration area and select "Extensions / Extension Manager" menu Upload file and select "Upload & Install"
or
-
Clone the repository into your site tmp folder and install module and plugin through Joomla Extension Manager directory option
-
Enable the plugin: Extensions > Plug-in manager > "Content - Most Popular by Date Range".
-
Customize module parameters in "Extensions / Module Manager" Most Popular Content by Date Range module
The extension starts to track article hits from your selected categories after enabling the plugin. Any previous hits will not count in the Popular Articles list.
- What articles will be present on each date range?
When an article is viewed at the frontend, it automatically adds a hit to all the date ranges, so "All time" date range should include articles from all the others ranges too, "30 day range" include articles from 7 and 1 day ranges, and "7 day" includes the 1 day range.
- Why it shows an empty list beside I've installed and enabled the extension?
It can happen that no hits has been recorded after enabling the plugin. You can try to open any article at the frontend and it should start appearing on the module article list.
v1.1
- Fixed bugs in article stats older than 30 days.
- Added an option to display the number of hits each articles has in module list