TYPO3 CMS  TYPO3_7-6
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 // Add a default TypoScript for the CType "login" (also replaces history login functionality)
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('TYPO3.CMS.Felogin', 'constants', '
6 styles.content.loginform {
7  # cat=content/cLogin; type=int+; label= PID of user archive: Enter the page-uid number (PID) of the folder where you keep your fe_users that are supposed to login on this site. This setting is necessary, if login is going to work!
8  pid =
9  # cat=content/cLogin; type=; label= Login template: Enter the path for the HTML template to be used
10  templateFile = EXT:felogin/Resources/Private/Templates/FrontendLogin.html
11 }
12 ', 'defaultContentRendering');
13 
14 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('TYPO3.CMS.Felogin', 'setup', '
15 # Setting "felogin" plugin TypoScript
16 tt_content.login = COA
17 tt_content.login {
18  10 =< lib.stdheader
19  20 >
20  20 =< plugin.tx_felogin_pi1
21 }
22 ', 'defaultContentRendering');
23 
24 // add login to new content element wizard
25 if (TYPO3_MODE === 'BE') {
26  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
27  mod.wizards.newContentElement.wizardItems.forms {
28  elements.login {
29  iconIdentifier = content-elements-login
30  title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_title
31  description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_description
32  tt_content_defValues {
33  CType = login
34  }
35  }
36  show :=addToList(login)
37  }
38  ');
39 }
40 
41 // Page module hook
42 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['felogin'] = \TYPO3\CMS\Felogin\Hooks\CmsLayout::class;