Page View Counter

Page View Counter plugin will help you to know how many readers of every page in your website.

by Sergey Romanenko


Installation

  1. Download & Install all required dependencies.
  2. Create new folder /project/plugins/page-view-counter
  3. Download Page View Counter Plugin and unzip plugin content to the folder /project/plugins/page-view-counter

Settings

Key Value Description
enabled true true or false to disable the plugin
priority 100 Page View Counter plugin priority

Function pageViewCounter() in namespace Flextype\Plugin\PageViewCounter

/**
 * Get page view counter
 *
 * @return int
 */
function pageViewCounter(): int

Usage

Display page view counter in the twig templates

{{ pageViewCounter() }}

Display page view counter in the entry content

[pageViewCounter]

Display page view counter in the php

echo Flextype\Plugin\PageViewCounter\pageViewCounter();

Version

2.0.0

Lincense

MIT

Dependencies

Categories

content