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 · 956 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, 6 days ago
3 130 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 454 2 months ago
Plugins · by Xavier, 2 months ago
2 373 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1595 2 months ago