From 9d69b16863713c2a285e44c83bf098eaed519ba1 Mon Sep 17 00:00:00 2001
From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
Date: Fri, 5 Jul 2019 16:24:26 +0200
Subject: [PATCH] [TASK] Add the path segment field to TCA configuration

---
 Configuration/TCA/Overrides/pages.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php
index 21a877c..8f89a57 100644
--- a/Configuration/TCA/Overrides/pages.php
+++ b/Configuration/TCA/Overrides/pages.php
@@ -92,7 +92,7 @@ call_user_func(
 		$GLOBALS['TCA'][$table]['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::CATEGORY_DOKTYPE] = [
 			'showitem' => '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
 					--palette--;;standard,
-					title, slug, tx_projectbase_excludefromsluggeneration, tx_realurl_pathsegment, tx_realurl_exclude,
+					title, slug, tx_projectbase_path_segment, tx_projectbase_excludefromsluggeneration, tx_realurl_pathsegment, tx_realurl_exclude,
 				--div--;' . $localLangDbPath . $table . '.tabs.images,
 					tx_sgnews_teaser2_image, tx_sgnews_teaser1_image,
 				--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:' . $table . '.tabs.metadata,
@@ -347,7 +347,7 @@ call_user_func(
 			--linebreak--, title,
 			--linebreak--, description,
 			--linebreak--, slug,
-			--linebreak--, tx_projectbase_excludefromsluggeneration,
+			--linebreak--, tx_projectbase_path_segment, tx_projectbase_excludefromsluggeneration,
 			--linebreak--, tx_realurl_pathsegment, tx_realurl_exclude,
 			--linebreak--, tx_sgnews_highlighted, tx_sgnews_never_highlighted',
 			'canNotCollapse' => 1,
@@ -355,7 +355,7 @@ call_user_func(
 
 		$GLOBALS['TCA'][$table]['palettes']['editorialWithNewsAuthor'] = [
 			'showitem' => 'tx_sgnews_author;' . $localLangDbPath . $table . '.tx_sgnews_author.inPalette,
-			--linebreak--, 
+			--linebreak--,
 			author;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:' . $table . '.author_formlabel,
 			author_email;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:' . $table . '.author_email_formlabel,
 			--linebreak--, lastUpdated;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:' . $table . '.lastUpdated_formlabel,
@@ -388,6 +388,7 @@ call_user_func(
 						'subtitle',
 						'description',
 						'slug',
+						'tx_projectbase_path_segment',
 						'tx_projectbase_excludefromsluggeneration',
 						'tx_sgnews_location',
 						'tx_sgnews_teaser1_image',
@@ -413,4 +414,3 @@ call_user_func(
 		}
 	}, 'sg_news', 'pages'
 );
-
-- 
GitLab