From 280bee51abd8972a068ed5690753c535fd78a951 Mon Sep 17 00:00:00 2001
From: axelbraunschweiger <axelbraunschweiger@gmail.com>
Date: Wed, 30 Jan 2019 12:58:46 -0500
Subject: [PATCH] Implement news plugin

---
 .../PageTS/NewContentElementWizard.ts         | 19 +++++++++++++++++++
 ext_localconf.php                             |  5 +++++
 2 files changed, 24 insertions(+)
 create mode 100644 Configuration/PageTS/NewContentElementWizard.ts

diff --git a/Configuration/PageTS/NewContentElementWizard.ts b/Configuration/PageTS/NewContentElementWizard.ts
new file mode 100644
index 0000000..bb84b32
--- /dev/null
+++ b/Configuration/PageTS/NewContentElementWizard.ts
@@ -0,0 +1,19 @@
+mod {
+    wizards.newContentElement.wizardItems.news {
+      header = LLL:EXT:sg_news/Resources/Private/Language/locallang.xlf:backend.licenceBannerTitle
+	  elements {
+		overview {
+		title = LLL:EXT:sg_news/Resources/Private/Language/locallang.xlf:backend.licenceBannerTitle
+		description = LLL:EXT:sg_news/Resources/Private/Language/locallang.xlf:backend.licenceBannerTitle
+		tt_content_defValues {
+			CType = list
+			list_type = sgnews_overview
+		}
+
+	  }
+
+    }
+	show = *
+   }
+
+}
\ No newline at end of file
diff --git a/ext_localconf.php b/ext_localconf.php
index df06519..edf5435 100644
--- a/ext_localconf.php
+++ b/ext_localconf.php
@@ -104,3 +104,8 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeade
 // 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/PageTS/NewContentElementWizard.ts">'
+);
\ No newline at end of file
-- 
GitLab