arthurperton/popular
最新稳定版本:v1.1.0
Composer 安装命令:
composer require arthurperton/popular
包简介
Pageview tracker for Statamic 3+
README 文档
README
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.
- Always know which content is the most popular with your visitors
- Create lists for popular items, for example top 5 most popular blog posts
- Show a read count for each article on your frontend
Features
- Easy setup
- Automatically adds a Pageviews field to your publish forms in the Control Panel
- Adds a computed field to your entries
- Includes a dedicated tag
- Dashboard widget
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
- PHP 7.4+
- Statamic v3.3.48+
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
统计信息
- 总下载量: 4.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-12-08