Skip to content
Snippets Groups Projects
Commit be3d40ce authored by Axel Braunschweiger's avatar Axel Braunschweiger :speech_balloon: Committed by Kevin Ditscheid
Browse files

Feature add sg news plugin

parent b3c6db69
No related branches found
No related tags found
No related merge requests found
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 @@
<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>
......@@ -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>
......@@ -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
......@@ -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
......
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