Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Collect pages as popularity (page count)

Started by Muut Archive 9 years ago · 2 replies · 1572 views
9 years ago

Hello,

I've got some questions about the Grav core.. in my modular page which I want to collect some of my posts by popularity. Is it possible? in Grav core when the pages are visited are they also going to be counted by Grav? and if they are, how could I collect them in my pages? thanks :)

9 years ago

This is not possible via the grav core because popularity is provided by admin, and the data is stored outside of pages, in a separate file. You would need to provide a function via a plugin that could sort an array of pages by looking in the popularity file and determining order.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2910 9 years ago
Archive · by Muut Archive, 9 years ago
2 1894 9 years ago
Archive · by Muut Archive, 9 years ago
2 5229 9 years ago
Archive · by Muut Archive, 9 years ago
1 4050 9 years ago
Archive · by Muut Archive, 9 years ago
3 1985 9 years ago