[BUGFIX] Felogin: Only wrap header/message if not empty 43/51943/2
authorBenni Mack <benni@typo3.org>
Fri, 3 Mar 2017 10:21:16 +0000 (11:21 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 4 Mar 2017 02:13:30 +0000 (03:13 +0100)
When adding felogin template the wraps defined by default
of EXT:felogin are always outputted even though it just adds
an empty div/h3 tag around, which looks odd in most installations.

The patch adds a proper required tag to see if the value is actually not
empty.

Resolves: #80110
Releases: master, 7.6
Change-Id: Ia9e4c7d3dc294b30db3f10cdde96f95899aa18ef
Reviewed-on: https://review.typo3.org/51943
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/felogin/ext_typoscript_setup.txt

index ae32088..db4edf5 100644 (file)
@@ -37,84 +37,103 @@ plugin.tx_felogin_pi1 {
        newPasswordMinLength = 6
 
        welcomeHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        welcomeMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
 
        successHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        successMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
 
        logoutHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        logoutMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
 
        errorHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        errorMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
 
        forgotHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        forgotMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        forgotErrorMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        forgotResetMessageEmailSentMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        changePasswordNotValidMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        changePasswordTooShortMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        changePasswordNotEqualMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
 
        changePasswordHeader_stdWrap {
+               required = 1
                wrap = <h3>|</h3>
                htmlSpecialChars = 1
        }
        changePasswordMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
        }
        changePasswordDoneMessage_stdWrap {
+               required = 1
                wrap = <div>|</div>
                htmlSpecialChars = 1
     }
 
        cookieWarning_stdWrap {
+               required = 1
                wrap = <p style="color:red; font-weight:bold;">|</p>
                htmlSpecialChars = 1
        }