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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Collect pages as popularity (page count)

Started by Muut Archive 9 years ago · 2 replies · 858 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 1277 9 years ago
Archive · by Muut Archive, 9 years ago
2 885 9 years ago
Archive · by Muut Archive, 9 years ago
2 4014 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1074 9 years ago