[FEATURE] Make template file for EXT:felogin configurable by constant
authorSoren Malling <soren.malling@gmail.com>
Tue, 19 Apr 2011 08:36:55 +0000 (10:36 +0200)
committerHelmut Hummel <typo3@helmut-hummel.de>
Wed, 20 Apr 2011 22:55:07 +0000 (00:55 +0200)
The HTML template for EXT:felogin should be configurable.

Therefore, add a new constant to css_styled_content named
styles.content.loginform.templateFile

As default it holds the previously hardcodede value from
EXT:felogin/ext_typoscript_setup.txt (EXT:felogin/template.html)

Change-Id: I98a55c3d2ed9f782450436194f95275e0ee307c7
Resolves: #26103
Reviewed-on: http://review.typo3.org/1658
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/css_styled_content/static/constants.txt
typo3/sysext/felogin/ext_typoscript_setup.txt

index 7826898..33a4992 100644 (file)
@@ -103,6 +103,8 @@ styles.content.loginform {
   pid =
     # cat=content/cLogin; type=; label= Message, Login: This is the message (if any) that is popped-up when a user logs in as a front-end user
   goodMess =
+    # cat=content/cLogin; type=; label= Login template: Enter the path for the HTML template to be used
+  templateFile = EXT:felogin/template.html
 }
 
 styles.content.searchform {
index ac50334..f736675 100644 (file)
@@ -4,7 +4,7 @@ plugin.tx_felogin_pi1 {
        recursive = 
        
                #Template File
-       templateFile = EXT:felogin/template.html
+       templateFile = {$styles.content.loginform.templateFile}
        
                #baseURL for the link generation
        feloginBaseURL =