NewestPageviews 

Provides a list of the newest pageview entries.

Example 

Default widget configuration.

Configuration/Services.yaml:

services:
  _defaults:
    autowire: true
    autoconfigure: true
    public: false

  DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews:
    arguments:
      $queryBuilder: '@querybuilder.tx_tracking_pageview'
      $pagesToExclude: [1, 11, 38]

  dashboard.widget.danielsiepmann.tracking.newestPageviews:
    class: 'TYPO3\CMS\Dashboard\Widgets\ListWidget'
    arguments:
      $view: '@dashboard.views.widget'
      $dataProvider: '@DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews'
    tags:
      - name: 'dashboard.widget'
        identifier: 'newestPageviewsList'
        groupNames: 'tracking'
        iconIdentifier: 'content-widget-list'
        title: 'LLL:EXT:tracking/Resources/Private/Language/locallang.xlf:dashboard.widgets.newestPageviewsList.title'
        description: 'LLL:EXT:tracking/Resources/Private/Language/locallang.xlf:dashboard.widgets.newestPageviewsList.description'
        height: 'medium'
        width: 'small'
Copied!

Options 

$maxResults

$maxResults
Type
Integer
Default
6

Defines how many pages should be shown. Defaults to 6 because EXT:dashboard only provides 6 colors.

$pagesToExclude

$pagesToExclude
Type
array of page UIDs
Default
empty array, all pages are shown.

This becomes handy if certain pages are called in order to show specific records. In those cases the pages will be called very often but don't provide much benefit and can be excluded. Use this in combination with Recordview to show the records instead.

$languageLimitation

$languageLimitation
Type
array of sys_language_uid's to include
Default
empty array, all languages are shown

Allows to limit results to specific lanuages. All entries tracked when visiting page with this language are shown. If multiple languages are shown, default system language labels are used. If only a single lanugage is allowed, record labels are translated to that language.