Project

General

Profile

Actions

Bug #88617

closed

Remove TYPO3_MODE === 'BE' condition for wizard pageTS

Added by Mathias Bolt Lesniak over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2019-06-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

The condition should be removed in ext_localconf.php.

By limiting the wizard PageTS to Backend only, the content element type will not be listed when in frontend context, and thus it will not be available in the Frontend Editor.

Suggested change:

Before

// Add login to new content element wizard
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
        mod.wizards.newContentElement.wizardItems.forms {
            elements.login {
                iconIdentifier = content-elements-login
                title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_title
                description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_description
                tt_content_defValues {
                    CType = login
                }
            }
            show :=addToList(login)
        }
    ');
}

After

// Add login to new content element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
    mod.wizards.newContentElement.wizardItems.forms {
        elements.login {
            iconIdentifier = content-elements-login
            title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_title
            description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_login_description
            tt_content_defValues {
                CType = login
            }
        }
        show :=addToList(login)
    }
');

Related issue for frontend_editing: https://github.com/FriendsOfTYPO3/frontend_editing/issues/263


Files

Actions

Also available in: Atom PDF