Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Get most viewed (popular) pages

Started by Usk70 9 years ago · 1 replies · 1061 views
9 years ago

I would like to understand if there is something easy to find most viewed pages to implement a "popular" blog articles feature.

So far I get latest articles by doing this:

{% for post in page.find('/blog').collection({'items': '@self.descendants','order': {'by': 'date','dir': 'desc'}}) %}

Thanks,

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 6 days ago
6 265 2 days ago
Plugins · by BenLaKnet, 3 days ago
1 97 3 days ago
Plugins · by complanar, 4 weeks ago
2 415 3 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 706 2 months ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 545 2 months ago