From 9cb0a681b90a7d82931f0dd0aefaf2f711dde654 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 5 Jan 2023 09:21:25 +0000 Subject: [PATCH] Replace Icons and add icon for page containing records --- Configuration/TCA/Overrides/pages.php | 25 ++++++++++++++++++ Documentation/Changelog/3.1.0.rst | 5 +++- .../Private/Language/de.locallang_db.xlf | 5 ++++ Resources/Private/Language/locallang_db.xlf | 4 +++ Resources/Public/Icons/Extension.svg | 2 +- Resources/Public/Icons/Folder.svg | 1 + .../Icons/tx_events_domain_model_date.svg | 2 +- .../Icons/tx_events_domain_model_event.svg | 2 +- .../Icons/tx_events_domain_model_import.svg | 26 +------------------ .../Icons/tx_events_domain_model_location.svg | 2 +- .../tx_events_domain_model_organizer.svg | 2 +- .../Icons/tx_events_domain_model_partner.svg | 2 +- .../Icons/tx_events_domain_model_region.svg | 2 +- ext_localconf.php | 5 ++++ 14 files changed, 52 insertions(+), 33 deletions(-) create mode 100644 Configuration/TCA/Overrides/pages.php create mode 100644 Resources/Public/Icons/Folder.svg diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php new file mode 100644 index 0000000..280da37 --- /dev/null +++ b/Configuration/TCA/Overrides/pages.php @@ -0,0 +1,25 @@ + [ + 'typeicon_classes' => [ + 'contains-events' => 'pages-module-events', + ], + ], + ]); + + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem( + $tableName, + 'module', + [ + 0 => $languagePath . '.module.events', + 1 => 'events', + 2 => 'pages-module-events', + ] + ); +})('events', 'pages'); diff --git a/Documentation/Changelog/3.1.0.rst b/Documentation/Changelog/3.1.0.rst index 6f1fe08..ea74971 100644 --- a/Documentation/Changelog/3.1.0.rst +++ b/Documentation/Changelog/3.1.0.rst @@ -13,6 +13,9 @@ Features A default of ``+60 days`` is hard coded. The actual date span can be configured via TypoScript. +* Pages can now define they store event records. + A new entry was added to select and the icon within page tree will be replaced. + Fixes ----- @@ -27,7 +30,7 @@ Fixes Tasks ----- -Nothing +* Update Icons. Deprecation ----------- diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf index 31843c6..284e705 100644 --- a/Resources/Private/Language/de.locallang_db.xlf +++ b/Resources/Private/Language/de.locallang_db.xlf @@ -15,6 +15,11 @@ Records to show Anzuzeigende Veranstaltungen + + + Events + Veranstaltungen + diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index d78e917..a84149b 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -12,6 +12,10 @@ Records to show + + + Events + diff --git a/Resources/Public/Icons/Extension.svg b/Resources/Public/Icons/Extension.svg index f0baaf6..6a09d2b 100644 --- a/Resources/Public/Icons/Extension.svg +++ b/Resources/Public/Icons/Extension.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/Folder.svg b/Resources/Public/Icons/Folder.svg new file mode 100644 index 0000000..4390c6f --- /dev/null +++ b/Resources/Public/Icons/Folder.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_date.svg b/Resources/Public/Icons/tx_events_domain_model_date.svg index d859b72..a9e4025 100644 --- a/Resources/Public/Icons/tx_events_domain_model_date.svg +++ b/Resources/Public/Icons/tx_events_domain_model_date.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_event.svg b/Resources/Public/Icons/tx_events_domain_model_event.svg index 51822b4..f94f36b 100644 --- a/Resources/Public/Icons/tx_events_domain_model_event.svg +++ b/Resources/Public/Icons/tx_events_domain_model_event.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_import.svg b/Resources/Public/Icons/tx_events_domain_model_import.svg index e9a9c2d..0913d9e 100644 --- a/Resources/Public/Icons/tx_events_domain_model_import.svg +++ b/Resources/Public/Icons/tx_events_domain_model_import.svg @@ -1,25 +1 @@ - - - - - - - - - - - - + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_location.svg b/Resources/Public/Icons/tx_events_domain_model_location.svg index baaea72..ae5e920 100644 --- a/Resources/Public/Icons/tx_events_domain_model_location.svg +++ b/Resources/Public/Icons/tx_events_domain_model_location.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_organizer.svg b/Resources/Public/Icons/tx_events_domain_model_organizer.svg index fdbd451..a5b2e0b 100644 --- a/Resources/Public/Icons/tx_events_domain_model_organizer.svg +++ b/Resources/Public/Icons/tx_events_domain_model_organizer.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_partner.svg b/Resources/Public/Icons/tx_events_domain_model_partner.svg index e48ac0f..8958d69 100644 --- a/Resources/Public/Icons/tx_events_domain_model_partner.svg +++ b/Resources/Public/Icons/tx_events_domain_model_partner.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_region.svg b/Resources/Public/Icons/tx_events_domain_model_region.svg index f604194..661a6fc 100644 --- a/Resources/Public/Icons/tx_events_domain_model_region.svg +++ b/Resources/Public/Icons/tx_events_domain_model_region.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/ext_localconf.php b/ext_localconf.php index 3c53350..4db4316 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -45,4 +45,9 @@ call_user_func(function () { \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, ['source' => 'EXT:events/Resources/Public/Icons/Extension.svg'] ); + $iconRegistry->registerIcon( + 'pages-module-events', + \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, + ['source' => 'EXT:events/Resources/Public/Icons/Folder.svg'] + ); });