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 · 1084 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 renedebaaij, 2 days ago
0 39 2 days ago
Plugins · by complanar, 3 weeks ago
6 392 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 209 2 weeks ago
Plugins · by complanar, 1 month ago
2 484 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 763 2 months ago