airport2023/plugins/vdomah/blogviews
root 0ba126f093 api 2023-10-05 06:10:28 +00:00
..
components all 2023-06-27 00:59:04 +05:00
lang/en all 2023-06-27 00:59:04 +05:00
models api 2023-10-05 06:10:28 +00:00
updates all 2023-06-27 00:59:04 +05:00
vendor all 2023-06-27 00:59:04 +05:00
LICENCE.md all 2023-06-27 00:59:04 +05:00
Plugin.php all 2023-06-27 00:59:04 +05:00
README.md all 2023-06-27 00:59:04 +05:00
composer.json all 2023-06-27 00:59:04 +05:00

README.md

Blog Views Extension

This plugin is an extension to the RainLab.Blog plugin. This extension add views tracking to blog posts and allows to add views counter to a post and display popular posts widget.

Adds dynamic views property to Post model: {{ post.views }}

Components

The popularPosts component can be used to display top viewed posts.

  • postsLimit - The max number of posts to show.
  • postPage - Reference to the page name for linking to posts.
  • noPostsMessage - Message to display when there are no posts.

Views (counter)

The Views component can be used to display post views number. In most cases use just {{ post.views }} without this component.