diff --git a/composer.json b/composer.json index c222553..8282e17 100644 --- a/composer.json +++ b/composer.json @@ -35,6 +35,7 @@ "prefer-stable": true, "require": { "php": "^8.2", + "georgringer/news": "dev-12-13", "surfcamp-team4/football": "@dev", "typo3/cms-backend": "dev-main", "typo3/cms-belog": "dev-main", diff --git a/composer.lock b/composer.lock index 8baa7b0..5ea60d1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fbf15caa002933f1d3d7477b173413bc", + "content-hash": "346b0461545232e4c177e80066fd4fba", "packages": [ { "name": "bacon/bacon-qr-code", @@ -813,6 +813,106 @@ }, "time": "2023-12-01T16:26:39+00:00" }, + { + "name": "georgringer/news", + "version": "dev-12-13", + "source": { + "type": "git", + "url": "https://github.com/georgringer/news.git", + "reference": "1cf9a3cf5353838305fdd768ad94d3c2cf49bfba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/georgringer/news/zipball/1cf9a3cf5353838305fdd768ad94d3c2cf49bfba", + "reference": "1cf9a3cf5353838305fdd768ad94d3c2cf49bfba", + "shasum": "" + }, + "require": { + "php": ">= 8.1 < 8.4", + "symfony/console": "^5.4 || ^6.4 || ^7.0", + "typo3/cms-backend": "^12.4.2 || ^13.1", + "typo3/cms-core": "^12.4.2 || ^13.1", + "typo3/cms-extbase": "^12.4.2 || ^13.1", + "typo3/cms-fluid": "^12.4.2 || ^13.1", + "typo3/cms-frontend": "^12.4.2 || ^13.1" + }, + "replace": { + "typo3-ter/news": "self.version" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.47.1", + "phpunit/phpunit": "^10.5", + "typo3/cms-install": "^12.4.2 || ^13.1", + "typo3/cms-seo": "^12.4.2 || ^13.1", + "typo3/coding-standards": "^0.5.5", + "typo3/testing-framework": "^8.0.9", + "webmozart/assert": "^1.11.0" + }, + "suggest": { + "georgringer/news-tagsuggest": "On the fly creation of tag records within a news record", + "georgringer/numbered-pagination": "Improved pagination API", + "reelworx/rx-shariff": "GDPR compliant social sharing", + "typo3/cms-install": "Upgrade wizards", + "typo3/cms-scheduler": "XML and ICS import", + "typo3/cms-seo": "Sitemaps" + }, + "type": "typo3-cms-extension", + "extra": { + "typo3/cms": { + "extension-key": "news", + "app-dir": ".Build", + "web-dir": ".Build/Web" + } + }, + "autoload": { + "psr-4": { + "GeorgRinger\\News\\": "Classes" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Georg Ringer", + "homepage": "https://ringer.it", + "role": "Developer" + } + ], + "description": "Versatile news system based on Extbase & Fluid and using the latest technologies provided by TYPO3 CMS.", + "homepage": "https://extensions.typo3.org/extension/news", + "keywords": [ + "article", + "extension", + "news", + "typo3" + ], + "support": { + "docs": "https://docs.typo3.org/p/georgringer/news/main/en-us/", + "issues": "https://github.com/georgringer/news/issues", + "source": "https://github.com/georgringer/news" + }, + "funding": [ + { + "url": "https://paypal.me/GeorgRinger/10", + "type": "custom" + }, + { + "url": "https://www.amazon.de/hz/wishlist/ls/8F573K08TSDG", + "type": "custom" + }, + { + "url": "https://github.com/georgringer", + "type": "github" + }, + { + "url": "https://www.patreon.com/georgringer", + "type": "patreon" + } + ], + "time": "2024-06-10T20:15:44+00:00" + }, { "name": "graham-campbell/result-type", "version": "v1.1.2", @@ -2249,7 +2349,7 @@ }, { "name": "surfcamp-team4/football", - "version": "dev-task/indexed-search", + "version": "dev-feature/news", "dist": { "type": "path", "url": "local_packages/football", @@ -7631,6 +7731,7 @@ "aliases": [], "minimum-stability": "dev", "stability-flags": { + "georgringer/news": 20, "surfcamp-team4/football": 20, "typo3/cms-backend": 20, "typo3/cms-belog": 20, diff --git a/config/system/settings.php b/config/system/settings.php index 4f3c88c..964fa92 100644 --- a/config/system/settings.php +++ b/config/system/settings.php @@ -58,6 +58,23 @@ 'useMysqlFulltext' => '0', 'xlhtml' => '/usr/bin/', ], + 'news' => [ + 'advancedMediaPreview' => '1', + 'archiveDate' => 'date', + 'categoryBeGroupTceFormsRestriction' => '0', + 'categoryRestriction' => '', + 'contentElementRelation' => '1', + 'dateTimeNotRequired' => '0', + 'hidePageTreeForAdministrationModule' => '0', + 'manualSorting' => '0', + 'prependAtCopy' => '1', + 'resourceFolderImporter' => '/news_import', + 'rteForTeaser' => '0', + 'showAdministrationModule' => '1', + 'slugBehaviour' => 'unique', + 'storageUidImporter' => '1', + 'tagPid' => '1', + ], 'scheduler' => [ 'maxLifetime' => '1440', ], diff --git a/local_packages/football/Configuration/Sets/Football/TypoScript/Extensions/news.typoscript b/local_packages/football/Configuration/Sets/Football/TypoScript/Extensions/news.typoscript new file mode 100644 index 0000000..b291de2 --- /dev/null +++ b/local_packages/football/Configuration/Sets/Football/TypoScript/Extensions/news.typoscript @@ -0,0 +1,15 @@ +@import 'EXT:news/Configuration/TypoScript/setup.typoscript' + +plugin.tx_news { + view { + templateRootPaths { + 100 = EXT:football/Resources/Private/Templates/Extensions/News/Templates + } + partialRootPaths { + 100 = EXT:football/Resources/Private/Templates/Extensions/News/Partials + } + layoutRootPaths { + 100 = EXT:football/Resources/Private/Templates/Extensions/News/Layouts + } + } +} \ No newline at end of file diff --git a/local_packages/football/Configuration/Sets/Football/constants.typoscript b/local_packages/football/Configuration/Sets/Football/constants.typoscript index 6b6655b..922def5 100644 --- a/local_packages/football/Configuration/Sets/Football/constants.typoscript +++ b/local_packages/football/Configuration/Sets/Football/constants.typoscript @@ -1,3 +1,5 @@ +@import 'EXT:news/Configuration/TypoScript/constants.typoscript' + ############ ### PAGE ### ############ diff --git a/local_packages/football/Configuration/Sets/Football/setup.typoscript b/local_packages/football/Configuration/Sets/Football/setup.typoscript index bb6b59d..7ed16ea 100644 --- a/local_packages/football/Configuration/Sets/Football/setup.typoscript +++ b/local_packages/football/Configuration/Sets/Football/setup.typoscript @@ -4,5 +4,6 @@ @import './TypoScript/Page/*.typoscript' @import './TypoScript/Helper/*.typoscript' @import './TypoScript/ContentElements/*.typoscript' +@import './TypoScript/Extensions/*.typoscript' @import './TypoScript/Config/*.typoscript' @import './TypoScript/Lib/*.typoscript' diff --git a/local_packages/football/Configuration/TsConfig/TCEFORM/news.tsconfig b/local_packages/football/Configuration/TsConfig/TCEFORM/news.tsconfig new file mode 100644 index 0000000..9e1fbed --- /dev/null +++ b/local_packages/football/Configuration/TsConfig/TCEFORM/news.tsconfig @@ -0,0 +1,3 @@ +tx_news.templateLayouts { + 100 = Teaser list +} \ No newline at end of file diff --git a/local_packages/football/Configuration/TsConfig/TCEFORM/tt_content.tsconfig b/local_packages/football/Configuration/TsConfig/TCEFORM/tt_content.tsconfig index 228acf1..99c949a 100644 --- a/local_packages/football/Configuration/TsConfig/TCEFORM/tt_content.tsconfig +++ b/local_packages/football/Configuration/TsConfig/TCEFORM/tt_content.tsconfig @@ -1,5 +1,5 @@ TCEFORM.tt_content { - CType.keepItems = game_results,textmedia,cta,hero,sponsors,form_formframework,event_teaser,news_teaser,indexedsearch_pi2,persons_overview + CType.keepItems = game_results,textmedia,cta,hero,sponsors,form_formframework,event_teaser,news_teaser,indexedsearch_pi2,persons_overview,news_pi1,news_newsdetail header_layout { keepItems = 2,3,4,100 diff --git a/local_packages/football/Resources/Private/Templates/Extensions/News/Partials/List/Item.html b/local_packages/football/Resources/Private/Templates/Extensions/News/Partials/List/Item.html new file mode 100644 index 0000000..1e3683e --- /dev/null +++ b/local_packages/football/Resources/Private/Templates/Extensions/News/Partials/List/Item.html @@ -0,0 +1,103 @@ + + +
+ + + + +