Skip to content
Snippets Groups Projects
Commit 8b9b9a68 authored by Ernesto Baschny's avatar Ernesto Baschny
Browse files

Revert "[BUGFIX] Frontend Login not added to CSC anymore"

This reverts commit 373a90b8

Benni is working on a better solution to the problem.

Related: #55557
Change-Id: I749ea9beb3879d7503294a51107a4a3855f0105e
Reviewed-on: https://review.typo3.org/27319
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
parent 3f459e78
No related merge requests found
......@@ -7,8 +7,7 @@
"version": "6.2.0",
"require": {
"typo3/cms/core": "*",
"typo3/cms/css-styled-content": "*"
"typo3/cms/core": "*"
},
"replace": {
"felogin": "*"
......
......@@ -31,7 +31,6 @@ $EM_CONF[$_EXTKEY] = array(
'constraints' => array(
'depends' => array(
'typo3' => '6.2.0-6.2.99',
'css_styled_content' => '6.2.0-6.2.99'
),
'conflicts' => array(),
'suggests' => array()
......
......@@ -2,17 +2,18 @@
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// define the plugin execution
$pluginContent = '# Defining "felogin" plugin TypoScript
//replace old Login
$pluginContent = trim('
plugin.tx_felogin_pi1 = USER_INT
plugin.tx_felogin_pi1.userFunc = TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController->main
';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $pluginContent);
// replace old Login with felogin
$replaceLoginCType = '
# Setting "felogin" plugin to replace default "login" content element via TypoScript
plugin.tx_felogin_pi1 {
includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
userFunc = tx_felogin_pi1->main
}
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
# Setting ' . $_EXTKEY . ' plugin TypoScript
' . $pluginContent);
$addLine = '
tt_content.login = COA
tt_content.login {
10 = < lib.stdheader
......@@ -20,8 +21,7 @@ tt_content.login {
20 = < plugin.tx_felogin_pi1
}
';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', $replaceLoginCType, 43);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '# Setting ' . $_EXTKEY . ' plugin TypoScript' . $addLine . '', 43);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod.wizards.newContentElement.wizardItems.forms {
elements {
......@@ -39,4 +39,5 @@ mod.wizards.newContentElement.wizardItems.forms {
');
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] = 'TYPO3\\CMS\\Felogin\\Hooks\\CmsLayout';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$_EXTKEY] =
'EXT:' . $_EXTKEY . '/Classes/Hooks/CmsLayout.php:TYPO3\CMS\Felogin\Hooks\CmsLayout';
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment