ds-site/Configuration/Services.yaml

54 lines
2 KiB
YAML
Raw Normal View History

2020-02-23 22:02:22 +01:00
services:
_defaults:
autowire: true
autoconfigure: true
public: false
DanielSiepmann\DsSite\:
resource: '../Classes/*'
2020-02-24 13:57:33 +01:00
# Widgets
2020-04-08 07:54:45 +02:00
dashboard.widget.site_ownrss:
class: 'TYPO3\CMS\Dashboard\Widgets\RssWidget'
arguments:
$view: '@dashboard.views.widget'
$cache: '@cache.dashboard.rss'
$options:
feedUrl: 'https://daniel-siepmann.de/feed/rssFeedAllBlogPosts/sitemap.xml'
2020-04-21 15:59:24 +02:00
limit: 3
2020-02-23 22:02:22 +01:00
tags:
- name: dashboard.widget
2020-04-08 07:54:45 +02:00
identifier: 'ownRss'
groupNames: 'typo3'
title: 'Own RSS Feed'
description: 'RSS Feed of Blog Posts'
iconIdentifier: 'content-widget-rss'
2020-04-21 15:59:24 +02:00
height: 'medium'
width: 'small'
2020-02-26 07:57:11 +01:00
2020-04-08 07:54:45 +02:00
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerDay:
2020-02-26 07:57:11 +01:00
arguments:
2020-04-08 07:54:45 +02:00
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage:
2020-02-26 07:57:11 +01:00
arguments:
2020-04-08 07:54:45 +02:00
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews:
2020-02-27 19:47:16 +01:00
arguments:
2020-04-08 07:54:45 +02:00
$queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38]
2020-04-21 15:55:29 +02:00
DanielSiepmann\Tracking\Middleware\Pageview:
public: true
arguments:
$rule: >
not (context.getAspect("backend.user").isLoggedIn())
and not (request.getHeader("User-Agent")[0] matches "/^TYPO3|TYPO3 linkvalidator/")
and not (request.getHeader("User-Agent")[0] matches "/^Codeception Testing/")
and not (request.getHeader("User-Agent")[0] matches "/Wget|curl|Go-http-client/")
and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot|SemrushBot|SEOkicks|Twitterbot|Seekport Crawler|SemanticScholarBot|ia_archiver|PaperLiBot|TrendsmapResolver|AhrefsBot|Nuzzel/")
and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")