diff --git a/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig b/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig new file mode 100644 index 0000000000000000000000000000000000000000..39ee1a766ce19232c5419e67fe858b98cdce2261 --- /dev/null +++ b/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig @@ -0,0 +1,57 @@ +mod { + wizards.newContentElement.wizardItems.news { + header = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:pageTypeTitlePlugin.news + elements { + overview { + iconIdentifier = sg_news-module + title = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleOverviewPlugin + description = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:descriptionOverviewPlugin + tt_content_defValues { + CType = list + list_type = sgnews_overview + } + + } + + latest { + iconIdentifier = sg_news-module + title = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleLatestPlugin + description = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:descriptionLatestPlugin + tt_content_defValues { + CType = list + list_type = sgnews_latest + } + + } + + single { + iconIdentifier = sg_news-module + title = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleSingleViewPlugin + description = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:descriptionSingleViewPlugin + tt_content_defValues { + CType = list + list_type = sgnews_singleview + + } + + } + + category { + iconIdentifier = sg_news-module + title = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleListByCategoryPlugin + description = LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:descriptionListByCategoryPlugin + tt_content_defValues { + CType = list + list_type = sgnews_listbycategory + + } + + } + + } + + show = * + + } + +} \ No newline at end of file diff --git a/Resources/Private/Language/de.locallang_backend.xlf b/Resources/Private/Language/de.locallang_backend.xlf index 6c6baccdc54cb2d14f08ba01eadccd9c5a020e60..88020cfe665c3715f4c82c5d03ba932d901ea327 100644 --- a/Resources/Private/Language/de.locallang_backend.xlf +++ b/Resources/Private/Language/de.locallang_backend.xlf @@ -37,6 +37,22 @@ <source>News Single View</source> <target>News-Einzelansicht</target> </trans-unit> + <trans-unit id="descriptionLatestPlugin"> + <source>Choose to show Latest News</source> + <target>Zeige die neuesten News </target> + </trans-unit> + <trans-unit id="descriptionListByCategoryPlugin"> + <source>List News by Category/Tag</source> + <target>Liste News aus Kategorien/Tags</target> + </trans-unit> + <trans-unit id="descriptionOverviewPlugin"> + <source>Show an Overview of News</source> + <target>Ãœberblick der News</target> + </trans-unit> + <trans-unit id="descriptionSingleViewPlugin"> + <source>Show a Single View of News</source> + <target>Zeige Einzelansicht der News</target> + </trans-unit> </body> </file> </xliff> diff --git a/Resources/Private/Language/locallang_backend.xlf b/Resources/Private/Language/locallang_backend.xlf index c4b9a34437733fc6ea1225776c4160cb19fa1520..a0fd4d2ece094f166b199f300c2a91b17bdcf394 100644 --- a/Resources/Private/Language/locallang_backend.xlf +++ b/Resources/Private/Language/locallang_backend.xlf @@ -12,6 +12,21 @@ <trans-unit id="coordinatePicker.missingImage"> <source>Please upload an image first and save the form!</source> </trans-unit> + <trans-unit id="pageTypeTitlePlugin.news"> + <source>[SgNews] Plugins</source> + </trans-unit> + <trans-unit id="pageTypeTitlePluginOverview.news"> + <source>[SgNews] News Overview</source> + </trans-unit> + <trans-unit id="pageTypeTitlePluginLatest.news"> + <source>[SgNews] News Latest</source> + </trans-unit> + <trans-unit id="pageTypeTitlePluginCategory.news"> + <source>[SgNews] News by Category</source> + </trans-unit> + <trans-unit id="pageTypeTitlePluginSingle.news"> + <source>[SgNews] News Single View</source> + </trans-unit> <trans-unit id="pageType.category"> <source>Category</source> </trans-unit> @@ -21,15 +36,27 @@ <trans-unit id="titleLatestPlugin"> <source>Latest News</source> </trans-unit> + <trans-unit id="descriptionLatestPlugin"> + <source>Choose to show Latest News</source> + </trans-unit> <trans-unit id="titleListByCategoryPlugin"> <source>List News by Category/Tag</source> </trans-unit> + <trans-unit id="descriptionListByCategoryPlugin"> + <source>List News by Category/Tag</source> + </trans-unit> <trans-unit id="titleOverviewPlugin"> <source>News Overview</source> </trans-unit> + <trans-unit id="descriptionOverviewPlugin"> + <source>Show an Overview of News</source> + </trans-unit> <trans-unit id="titleSingleViewPlugin"> <source>News Single View</source> </trans-unit> + <trans-unit id="descriptionSingleViewPlugin"> + <source>Show a Single View of News</source> + </trans-unit> </body> </file> </xliff> diff --git a/ext_localconf.php b/ext_localconf.php index 981b2f7e24443c0001d8489141571a1cc4cde356..e28cc8f162ba3be0fe15cf947f61d3e2e85496f7 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -132,5 +132,9 @@ call_user_func( ); \SGalinski\SgNews\Utility\BackendNewsUtility::registerIcons(); + + \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( + '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extKey . '/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig">' + ); }, 'sg_news' );