Bug #88617

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

Added by Mathias Bolt Lesniak 4 months ago. Updated 3 months ago.

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

0%

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

remove-backend-condition-for-pagets.patch View (1.73 KB) Mathias Bolt Lesniak, 2019-06-23 12:24

History

#2 Updated by Georg Ringer 3 months ago

  • Status changed from New to Resolved

also solved in 10

Also available in: Atom PDF