[BUGFIX] Make subheaders aware of possible default header layouts 68/38868/2
authorJo Hasenau <info@cybercraft.de>
Thu, 23 Apr 2015 10:07:43 +0000 (12:07 +0200)
committerFrank Nägler <typo3@naegler.net>
Fri, 8 May 2015 18:33:42 +0000 (20:33 +0200)
Releases: master
Resolves: #40462
Change-Id: Iec9eb9886b3b4605054acf32d79d635cefcb0bfc
Reviewed-on: http://review.typo3.org/38868
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/css_styled_content/static/setup.txt

index 342ffce..3f02eb9 100644 (file)
@@ -248,9 +248,9 @@ lib.stdheader {
        # HTML5 subheader
        20 = CASE
        20 {
-               key {
-                       field = header_layout
-               }
+               key.field = header_layout
+               key.ifEmpty = {$content.defaultHeaderType}
+               key.ifEmpty.override.data = register: defaultHeaderType
 
                default = TEXT
                default {