[TASK] Replace styles.content.get in Install Tool created TS 54/60154/2
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 11 Mar 2019 16:20:54 +0000 (17:20 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 11 Mar 2019 21:01:25 +0000 (22:01 +0100)
Use cObject CONTENT directly instead of using styles.content.get

Resolves: #87886
Releases: master
Change-Id: I68df06ca1a3aca2b1545efb343c8474c60da228b
Reviewed-on: https://review.typo3.org/c/60154
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/install/Classes/Controller/InstallerController.php

index 24cda8f..1d8c1f2 100644 (file)
@@ -793,7 +793,15 @@ page.10.value (
       <h4 style="font-family: sans-serif;">Welcome to a default website made with <a href="https://typo3.org">TYPO3</a></h4>
    </div>
 )
-page.100 =< styles.content.get',
+page.100 = CONTENT
+page.100 {
+    table = tt_content
+    select {
+        orderBy = sorting
+        where = {#colPos}=0
+    }
+}
+',
                         'description' => 'This is an Empty Site Package TypoScript template.
 
 For each website you need a TypoScript template on the main page of your website (on the top level). For better maintenance all TypoScript should be extracted into external files via <INCLUDE_TYPOSCRIPT: source="FILE:EXT:site_myproject/Configuration/TypoScript/setup.typoscript">.'