Make compatible with 10.4 dashboard
This commit is contained in:
parent
0d90c0d942
commit
660c9505bd
2 changed files with 25 additions and 64 deletions
|
@ -1,36 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace DanielSiepmann\DsSite\Dashboard\Widgets;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation; either version 2
|
|
||||||
* of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
* 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
use TYPO3\CMS\Dashboard\Widgets\AbstractRssWidget;
|
|
||||||
|
|
||||||
class OwnRssFeed extends AbstractRssWidget
|
|
||||||
{
|
|
||||||
protected $rssFile = 'https://daniel-siepmann.de/feed/rssFeedAllBlogPosts/sitemap.xml';
|
|
||||||
protected $lifeTime = 43200;
|
|
||||||
protected $title = 'Own RSS Feed';
|
|
||||||
protected $description = 'RSS Feed of Blog Posts';
|
|
||||||
protected $iconIdentifier = 'content-widget-rss';
|
|
||||||
protected $moreItemsLink = 'https://daniel-siepmann.de/';
|
|
||||||
protected $moreItemsText = 'Open Blog';
|
|
||||||
protected $width = 2;
|
|
||||||
}
|
|
|
@ -8,37 +8,34 @@ services:
|
||||||
resource: '../Classes/*'
|
resource: '../Classes/*'
|
||||||
|
|
||||||
# Widgets
|
# Widgets
|
||||||
|
dashboard.widget.site_ownrss:
|
||||||
DanielSiepmann\DsSite\Dashboard\Widgets\OwnRssFeed:
|
class: 'TYPO3\CMS\Dashboard\Widgets\RssWidget'
|
||||||
class: DanielSiepmann\DsSite\Dashboard\Widgets\OwnRssFeed
|
arguments:
|
||||||
arguments: ['ownRss']
|
$view: '@dashboard.views.widget'
|
||||||
|
$cache: '@cache.dashboard.rss'
|
||||||
|
$options:
|
||||||
|
feedUrl: 'https://daniel-siepmann.de/feed/rssFeedAllBlogPosts/sitemap.xml'
|
||||||
tags:
|
tags:
|
||||||
- name: dashboard.widget
|
- name: dashboard.widget
|
||||||
identifier: ownRss
|
identifier: 'ownRss'
|
||||||
widgetGroups: 'own'
|
groupNames: 'typo3'
|
||||||
|
title: 'Own RSS Feed'
|
||||||
|
description: 'RSS Feed of Blog Posts'
|
||||||
|
iconIdentifier: 'content-widget-rss'
|
||||||
|
height: 'large'
|
||||||
|
width: 'medium'
|
||||||
|
|
||||||
# Foreign Classes
|
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerDay:
|
||||||
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\PageViewsBar:
|
|
||||||
factory:
|
|
||||||
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
|
|
||||||
- 'fromArray'
|
|
||||||
arguments:
|
arguments:
|
||||||
$widgetIdentifier: 'pageViewsBar'
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
||||||
$settings:
|
$blackListedPages: [1, 11, 38]
|
||||||
blackListedPages: [1, 11, 38]
|
|
||||||
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\PageViewsPerPageDoughnut:
|
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage:
|
||||||
factory:
|
|
||||||
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
|
|
||||||
- 'fromArray'
|
|
||||||
arguments:
|
arguments:
|
||||||
$widgetIdentifier: 'pageViewsPerPageDoughnut'
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
||||||
$settings:
|
$blackListedPages: [1, 11, 38]
|
||||||
blackListedPages: [1, 11, 38]
|
|
||||||
DanielSiepmann\Tracking\DI\Dashboard\Widgets\Settings\NewestPageviewsList:
|
DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews:
|
||||||
factory:
|
|
||||||
- '@DanielSiepmann\Tracking\Dashboard\Widgets\SettingsFactory'
|
|
||||||
- 'fromArray'
|
|
||||||
arguments:
|
arguments:
|
||||||
$widgetIdentifier: 'pageViewsPerPageDoughnut'
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
||||||
$settings:
|
$blackListedPages: [1, 11, 38]
|
||||||
blackListedPages: [1, 11, 38]
|
|
||||||
|
|
Loading…
Reference in a new issue