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 · 982 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 Vladimir Novak, 2 weeks ago
3 291 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago