TYPO3 CMS  TYPO3_6-2
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 if (!defined('TYPO3_MODE')) {
3  die('Access denied.');
4 }
5 //replace old Login
6 $pluginContent = trim('
7 plugin.tx_felogin_pi1 = USER_INT
8 plugin.tx_felogin_pi1 {
9  includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
10  userFunc = tx_felogin_pi1->main
11 }
12 ');
14 # Setting ' . $_EXTKEY . ' plugin TypoScript
15 ' . $pluginContent);
17 tt_content.login = COA
18 tt_content.login {
19  10 =< lib.stdheader
20  20 >
21  20 =< plugin.tx_felogin_pi1
22 }
23 ';
24 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 'defaultContentRendering');
25 
26 // add login to new content element wizard
27 if (TYPO3_MODE === 'BE') {
29  mod.wizards.newContentElement.wizardItems.forms {
30  elements {
31  login {
32  icon = gfx/c_wiz/login_form.gif
33  title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_title
34  description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_login_description
35  tt_content_defValues {
36  CType = login
37  }
38  }
39  }
40  show :=addToList(login)
41  }
42  ');
43 }
44 
45 // Page module hook
46 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] =
47  'EXT:' . $_EXTKEY . '/Classes/Hooks/CmsLayout.php:TYPO3\CMS\Felogin\Hooks\CmsLayout';
if(!defined('TYPO3_MODE')) $pluginContent
static addTypoScript($key, $type, $content, $afterStaticUid=0)
const TYPO3_MODE
Definition: init.php:40
die
Definition: index.php:6
$addLine
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]