arthurperton / statamic-popular

Other
0 stars 0 forks source link

GitHub release Statamic

Popular – addon for Statamic

Want to track popular content or show a top 5 of your most read blog posts? Popular is the missing page view tracker for your Statamic website. Fast, batteries included and build for scale.

Popular registers all page views for individual pages and entries.

Features

Documentation

Have a look at the full documentation for more details.

Templating Example

To show a top 5 of your most read blog posts, simply do this:

<ol>
    {{ collection from="blog" limit="5" sort="pageviews:desc" }}
        <li>{{ title }} ({{ pageviews }})</li>
    {{ /collection }}
</ol>

Requirements

Popular uses the SQLite3 PHP extension, which is enabled by default.

License

Popular is commercial software but has an open-source codebase. If you want to use it in production, you'll need to buy a license from the Statamic Marketplace.

Credits

Developed by Arthur Perton