Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Get most viewed (popular) pages

Started by Usk70 9 years ago · 1 replies · 942 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 Mathieu Lecouturier, 1 day ago
0 53 1 day ago
Plugins · by Slebeig, 4 weeks ago
1 272 4 weeks ago
Plugins · by Rene, 2 months ago
2 432 2 months ago
Plugins · by Xavier, 2 months ago
2 345 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1568 2 months ago