Skip to content
Snippets Groups Projects
Commit 32d9d948 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

Merge branch 'feature_AddSgNewsPlugin' into 'master'

Feature add sg news plugin

See merge request !9
parents b3c6db69 be3d40ce
No related branches found
No related tags found
1 merge request!9Feature add sg news plugin
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
...@@ -37,6 +37,22 @@ ...@@ -37,6 +37,22 @@
<source>News Single View</source> <source>News Single View</source>
<target>News-Einzelansicht</target> <target>News-Einzelansicht</target>
</trans-unit> </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> </body>
</file> </file>
</xliff> </xliff>
...@@ -12,6 +12,21 @@ ...@@ -12,6 +12,21 @@
<trans-unit id="coordinatePicker.missingImage"> <trans-unit id="coordinatePicker.missingImage">
<source>Please upload an image first and save the form!</source> <source>Please upload an image first and save the form!</source>
</trans-unit> </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"> <trans-unit id="pageType.category">
<source>Category</source> <source>Category</source>
</trans-unit> </trans-unit>
...@@ -21,15 +36,27 @@ ...@@ -21,15 +36,27 @@
<trans-unit id="titleLatestPlugin"> <trans-unit id="titleLatestPlugin">
<source>Latest News</source> <source>Latest News</source>
</trans-unit> </trans-unit>
<trans-unit id="descriptionLatestPlugin">
<source>Choose to show Latest News</source>
</trans-unit>
<trans-unit id="titleListByCategoryPlugin"> <trans-unit id="titleListByCategoryPlugin">
<source>List News by Category/Tag</source> <source>List News by Category/Tag</source>
</trans-unit> </trans-unit>
<trans-unit id="descriptionListByCategoryPlugin">
<source>List News by Category/Tag</source>
</trans-unit>
<trans-unit id="titleOverviewPlugin"> <trans-unit id="titleOverviewPlugin">
<source>News Overview</source> <source>News Overview</source>
</trans-unit> </trans-unit>
<trans-unit id="descriptionOverviewPlugin">
<source>Show an Overview of News</source>
</trans-unit>
<trans-unit id="titleSingleViewPlugin"> <trans-unit id="titleSingleViewPlugin">
<source>News Single View</source> <source>News Single View</source>
</trans-unit> </trans-unit>
<trans-unit id="descriptionSingleViewPlugin">
<source>Show a Single View of News</source>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>
...@@ -100,7 +100,10 @@ if(!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.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'][] = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] =
\SGalinski\SgNews\Hooks\PageLayoutController::class . '->addNewsModuleLink'; \SGalinski\SgNews\Hooks\PageLayoutController::class . '->addNewsModuleLink';
// register command controllers // register command controllers
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] =
'SGalinski\SgNews\Command\MigrateNewsCommandController'; '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
...@@ -10,22 +10,22 @@ if (!defined('TYPO3_MODE')) { ...@@ -10,22 +10,22 @@ if (!defined('TYPO3_MODE')) {
TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'sg_news', 'Overview', '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( TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'sg_news', 'Latest', '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( TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'sg_news', 'SingleView', '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( TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'sg_news', 'ListByCategory', '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') { if (TYPO3_MODE === 'BE') {
...@@ -162,6 +162,7 @@ $iconRegistry->registerIcon( ...@@ -162,6 +162,7 @@ $iconRegistry->registerIcon(
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:sg_news/Resources/Public/Icons/module-sgnews-transparent.svg'] ['source' => 'EXT:sg_news/Resources/Public/Icons/module-sgnews-transparent.svg']
); );
$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes'][$customPageDoktype] = 'tcarecords-pages-' . $customPageDoktype; $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 // add the new doktype to the list of types available from the new page menu at the top of the page tree
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment