[TASK] Use FQCN's when registering plugins/modules
[Packages/TYPO3.CMS.git] / typo3 / sysext / felogin / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Add a default TypoScript for the CType "login"
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants(
6 '
7 # customsubcategory=01_Storage=Storage
8 # customsubcategory=02_Template=Template
9 # customsubcategory=03_Features=Features
10 # customsubcategory=04_EMail=E-Mail
11 # customsubcategory=05_Redirects=Redirects
12 # customsubcategory=06_Security=Security
13
14 styles.content.loginform {
15 # cat=Frontend Login/01_Storage/100; type=int+; label= Storage Folder: Define the Storage Folder with the Website User Records, using a comma separated list or single value
16 pid = 0
17 # cat=Frontend Login/01_Storage/101; type=boolean; label= Recursive: If set, also any subfolders of the storagePid will be used
18 recursive = 0
19
20 # cat=Frontend Login/02_Template/100; type=string; label= Login template: Enter the path for the HTML template to be used
21 templateFile = EXT:felogin/Resources/Private/Templates/FrontendLogin.html
22 # cat=Frontend Login/02_Template/101; type=string; label= BaseURL for generated links: Base url if something other than the system base URL is needed
23 feloginBaseURL =
24 # cat=Frontend Login/02_Template/102; type=string; label= Date format: Format for the link is valid until message (forget password email)
25 dateFormat = Y-m-d H:i
26
27 # cat=Frontend Login/03_Features/100; type=boolean; label= Display Password Recovery Link: If set, the section in the template to display the link to the forget password dialogue is visible.
28 showForgotPasswordLink = 0
29 # cat=Frontend Login/03_Features/101; type=boolean; label= Display Remember Login Option: If set, the section in the template to display the option to remember the login (with a cookie) is visible.
30 showPermaLogin = 0
31 # cat=Frontend Login/03_Features/102; type=boolean; label= Disable redirect after successful login, but display logout-form: If set, the logout form will be displayed immediately after successful login.
32 showLogoutFormAfterLogin = 0
33
34 # cat=Frontend Login/04_EMail/100; type=string; label= E-Mail Sender Address: E-Mail address used as sender of the change password emails
35 emailFrom =
36 # cat=Frontend Login/04_EMail/101; type=string; label= E-Mail Sender Name: Name used as sender of the change password emails
37 emailFromName =
38 # cat=Frontend Login/04_EMail/102; type=string; label= Reply To E-Mail Address: Reply-to address used in the change password emails
39 replyToEmail =
40
41 # cat=Frontend Login/05_Redirects/101; type=string; label= Redirect Mode: Comma separated list of redirect modes. Possible values: groupLogin, userLogin, login, getpost, referer, refererDomains, loginError, logout
42 redirectMode =
43 # cat=Frontend Login/05_Redirects/102; type=boolean; label= Use First Supported Mode from Selection: If set the first method from redirectMode which is possible will be used
44 redirectFirstMethod = 0
45 # cat=Frontend Login/05_Redirects/103; type=int+; label= After Successful Login Redirect to Page: Page id to redirect to after Login
46 redirectPageLogin = 0
47 # cat=Frontend Login/05_Redirects/104; type=int+; label= After Failed Login Redirect to Page: Page id to redirect to after Login Error
48 redirectPageLoginError = 0
49 # cat=Frontend Login/05_Redirects/105; type=int+; label= After Logout Redirect to Page: Page id to redirect to after Logout
50 redirectPageLogout = 0
51 # cat=Frontend Login/05_Redirects/106; type=boolean; label= Disable Redirect: If set redirecting is disabled
52 redirectDisable = 0
53
54 # cat=Frontend Login/06_Security/100; type=int+; label= Time in hours how long the link for forget password is valid: How many hours the link for forget password is valid
55 forgotLinkHashValidTime = 12
56 # cat=Frontend Login/06_Security/101; type=int+; label= Minimum amount of characters, when setting a new password: Minimum length of the new password a user sets
57 newPasswordMinLength = 6
58 # cat=Frontend Login/06_Security/102; type=string; label= Allowed Referrer-Redirect-Domains: Comma separated list of domains which are allowed for the referrer redirect mode
59 domains =
60 # cat=Frontend Login/06_Security/103; type=boolean; label= Expose existing users: Expose the information on whether or not the account for which a new password was requested exists. By default, that information is not disclosed for privacy reasons.
61 exposeNonexistentUserInForgotPasswordDialog = 0
62 }
63 '
64 );
65 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
66 '
67 # Setting "felogin" plugin TypoScript
68 plugin.tx_felogin_pi1 = USER_INT
69 plugin.tx_felogin_pi1 {
70 userFunc = TYPO3\CMS\Felogin\Controller\FrontendLoginController->main
71
72 # Storage
73 storagePid = {$styles.content.loginform.pid}
74 recursive = {$styles.content.loginform.recursive}
75
76 # Template
77 templateFile = {$styles.content.loginform.templateFile}
78 feloginBaseURL = {$styles.content.loginform.feloginBaseURL}
79 dateFormat = {$styles.content.loginform.dateFormat}
80
81 # Features
82 showForgotPasswordLink = {$styles.content.loginform.showForgotPasswordLink}
83 showPermaLogin = {$styles.content.loginform.showPermaLogin}
84 showLogoutFormAfterLogin = {$styles.content.loginform.showLogoutFormAfterLogin}
85
86 # E-Mail Settings
87 email_from = {$styles.content.loginform.emailFrom}
88 email_fromName = {$styles.content.loginform.emailFromName}
89 replyTo = {$styles.content.loginform.replyToEmail}
90
91 # Redirects
92 redirectMode = {$styles.content.loginform.redirectMode}
93 redirectFirstMethod = {$styles.content.loginform.redirectFirstMethod}
94 redirectPageLogin = {$styles.content.loginform.redirectPageLogin}
95 redirectPageLoginError = {$styles.content.loginform.redirectPageLoginError}
96 redirectPageLogout = {$styles.content.loginform.redirectPageLogout}
97 redirectDisable = {$styles.content.loginform.redirectDisable}
98
99 # Security
100 forgotLinkHashValidTime = {$styles.content.loginform.forgotLinkHashValidTime}
101 newPasswordMinLength = {$styles.content.loginform.newPasswordMinLength}
102 domains = {$styles.content.loginform.domains}
103 exposeNonexistentUserInForgotPasswordDialog = {$styles.content.loginform.exposeNonexistentUserInForgotPasswordDialog}
104
105 # should a wrapper class be set for this content element
106 wrapContentInBaseClass = 1
107
108 # typolink-configuration for links / urls
109 # parameter and additionalParams are set by extension
110 linkConfig {
111 target =
112 ATagParams = rel="nofollow"
113 }
114
115 # preserve GET vars - define "all" or comma separated list of GET-vars that should be included by link generation
116 preserveGETvars = all
117
118 welcomeHeader_stdWrap {
119 required = 1
120 wrap = <h3>|</h3>
121 htmlSpecialChars = 1
122 }
123 successHeader_stdWrap < .welcomeHeader_stdWrap
124 logoutHeader_stdWrap < .welcomeHeader_stdWrap
125 errorHeader_stdWrap < .welcomeHeader_stdWrap
126 forgotHeader_stdWrap < .welcomeHeader_stdWrap
127 changePasswordHeader_stdWrap < .welcomeHeader_stdWrap
128
129 welcomeMessage_stdWrap {
130 required = 1
131 wrap = <div>|</div>
132 htmlSpecialChars = 1
133 }
134 successMessage_stdWrap < .welcomeMessage_stdWrap
135 logoutMessage_stdWrap < .welcomeMessage_stdWrap
136 errorMessage_stdWrap < .welcomeMessage_stdWrap
137 forgotMessage_stdWrap < .welcomeMessage_stdWrap
138 forgotErrorMessage_stdWrap < .welcomeMessage_stdWrap
139 forgotResetMessageEmailSentMessage_stdWrap < .welcomeMessage_stdWrap
140 changePasswordNotValidMessage_stdWrap < .welcomeMessage_stdWrap
141 changePasswordTooShortMessage_stdWrap < .welcomeMessage_stdWrap
142 changePasswordNotEqualMessage_stdWrap < .welcomeMessage_stdWrap
143 changePasswordMessage_stdWrap < .welcomeMessage_stdWrap
144 changePasswordDoneMessage_stdWrap < .welcomeMessage_stdWrap
145
146 cookieWarning_stdWrap {
147 required = 1
148 wrap = <p style="color:red; font-weight:bold;">|</p>
149 htmlSpecialChars = 1
150 }
151
152 # stdWrap for fe_users fields used in Messages
153 userfields {
154 username {
155 htmlSpecialChars = 1
156 wrap = <strong>|</strong>
157 }
158 }
159 }
160
161 # Setting "felogin" plugin TypoScript
162 tt_content.login =< lib.contentElement
163 tt_content.login {
164 templateName = Generic
165 variables {
166 content =< plugin.tx_felogin_pi1
167 }
168 }
169 '
170 );
171
172 // Add login to new content element wizard
173 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
174 mod.wizards.newContentElement.wizardItems.forms {
175 elements.login {
176 iconIdentifier = content-elements-login
177 title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_title
178 description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_description
179 tt_content_defValues {
180 CType = login
181 }
182 }
183 show :=addToList(login)
184 }
185 ');
186
187 // Page module hook
188 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['felogin'] = \TYPO3\CMS\Felogin\Hooks\CmsLayout::class;