From 30dc18b31e5b34f59914cfb0a43ebc71acb1b9a6 Mon Sep 17 00:00:00 2001
From: Tom Ruether <info@redscout.de>
Date: Fri, 31 Jan 2014 18:14:41 +0100
Subject: [PATCH] [TASK] tt_content.shortcut depends on layout

CSS Styled Content delivers its TypoScript
and got a cleanup in 4.6 due to removal
of old plugins.
However, the replacement (in the default
TS from 4.6 to 6.2) has superfluous code
and is not backwards-compatible if the
layout field is used differently or not used
at all (e.g. NULL value instead of 0) for
installations that have been upgraded
since 4.0.

The patch simplifies and unifies
the default TypoScript for
tt_content.shortcut.

Releases: 6.2
Change-Id: I3ed49e265329155af683a993476ffbb13226462c
Reviewed-on: https://review.typo3.org/27211
Reviewed-by: Sebastian Dudda
Tested-by: Sebastian Dudda
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
---
 typo3/sysext/css_styled_content/static/setup.txt | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/typo3/sysext/css_styled_content/static/setup.txt b/typo3/sysext/css_styled_content/static/setup.txt
index 50e9fe9e6ac3..289705bcb6c2 100644
--- a/typo3/sysext/css_styled_content/static/setup.txt
+++ b/typo3/sysext/css_styled_content/static/setup.txt
@@ -2171,15 +2171,9 @@ tt_content.menu {
 # Should be a complete copy from the old static template "content (default)"
 tt_content.shortcut = COA
 tt_content.shortcut {
-	20 = CASE
-	20.key.field = layout
-	20.0= RECORDS
-	20.0 {
-		source.field = records
-		tables = {$content.shortcut.tables}
-	}
-	20.1= RECORDS
-	20.1 {
+
+	20 = RECORDS
+	20 {
 		source.field = records
 		tables = {$content.shortcut.tables}
 	}
-- 
GitLab