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 df0651991c0af706669a5b68ed195ec65b1d13fb..7f5a9e71f4c91b7436176b38336b65c2557b5ba7 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -100,7 +100,10 @@ if(!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] = \SGalinski\SgNews\Hooks\PageLayoutController::class . '->addNewsModuleLink'; - // register command controllers $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'SGalinski\SgNews\Command\MigrateNewsCommandController'; + +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( + '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sg_news/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig">' +); \ No newline at end of file diff --git a/ext_tables.php b/ext_tables.php index 8b9a4f60a6621be434eb87d8ebeb34ca33c6fbad..3007830262e2e561f4230b525dd1f981bdee6083 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -10,22 +10,22 @@ if (!defined('TYPO3_MODE')) { TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'sg_news', 'Overview', - 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleOverviewPlugin' + 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:pageTypeTitlePluginOverview.news' ); TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'sg_news', 'Latest', - 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleLatestPlugin' + 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:pageTypeTitlePluginLatest.news' ); TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'sg_news', 'SingleView', - 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleSingleViewPlugin' + 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:pageTypeTitlePluginSingle.news' ); TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'sg_news', 'ListByCategory', - 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:titleListByCategoryPlugin' + 'LLL:EXT:sg_news/Resources/Private/Language/locallang_backend.xlf:pageTypeTitlePluginCategory.news' ); if (TYPO3_MODE === 'BE') { @@ -162,6 +162,7 @@ $iconRegistry->registerIcon( \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, ['source' => 'EXT:sg_news/Resources/Public/Icons/module-sgnews-transparent.svg'] ); + $GLOBALS['TCA']['pages']['ctrl']['typeicon_classes'][$customPageDoktype] = 'tcarecords-pages-' . $customPageDoktype; // add the new doktype to the list of types available from the new page menu at the top of the page tree