Commit f56c5eda authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Deprecate edit panel related functionality

The frontend editing extension ext:feedit has been
extracted from core monorepo with #87498 in v10.

This rendered stdWrap.editPanel, stdWrap.editIcons
and EDITPANEL content object unused as core
functionality.

The patch deprecates these parts: Extensions that
rely on it - typically ext:feedit and
ext:frontend_editing should integrate stdWrap
using hooks and registering an own EDITPANEL cObj
if needed.

Releases: master
Resolves: #94953
Related: #87498
Change-Id: I489b4fb2d3e09d8b2fcad91b5ae3bccf28244151
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70714

Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent e9ba620f
.. include:: ../../Includes.txt
===============================================================
Deprecation: #94953 - Edit panel related frontend functionality
===============================================================
See :issue:`94953`
Description
===========
With the extraction of the "feedit" extension from TYPO3 core in v10 a
couple of TypoScript related properties have been rendered unused. Extensions
that provide a frontend editing approach should implement these on their own.
The following TypoScript properties have been marked as deprecated and
will be removed in v12:
* :typoscript:`stdWrap.editPanel`
* :typoscript:`stdWrap.editPanel.`
* :typoscript:`stdWrap.editIcons`
* :typoscript:`stdWrap.editIcons.`
* :typoscript:`EDITPANEL` content object
Related PHP code has been marked as deprecated:
* Method :php:`TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->stdWrap_editIcons()` - scanned
* Method :php:`TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->stdWrap_editPanel()` - scanned
* Method :php:`TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->editPanel()` - scanned
* Method :php:`TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->editIcons()` - scanned
* Method :php:`TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->isDisabled()` - not scanned
* Class :php:`TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject` - scanned
* Hook :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']` - scanned, logged
* Property :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController.php->displayEditIcons` - scanned
* Property :php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController.php->displayFieldEditIcons` - scanned
* Method :php:`TYPO3\CMS\Frontend\Plugin\AbstractPlugin->pi_getEditPanel()` - scanned, logged
* Method :php:`TYPO3\CMS\Frontend\Plugin\AbstractPlugin->pi_getEditIcon()` - scanned, logged
* Property :php:`TYPO3\CMS\Frontend\Plugin\AbstractPlugin->pi_EPtemp_cObj` - scanned
Impact
======
Some of the method usages will trigger a PHP :php:`E_USER_DEPRECATED` error upon use. The
core extension EXT:fluid_styled_content still sets stdWrap.editPanel and
stdWrap.editIcons properties for content elements, so the known frontend editing
related extensions EXT:feedit and EXT:frontend_editing will continue to work
in v11. Those properties will be removed with v12.
Affected Installations
======================
Instances that use frontend editing extensions - most notably EXT:feedit or
EXT:frontend_editing - may see deprecated functionality being logged. The
extension scanner will find PHP usages. Using the TypoScript properties is
not logged.
Migration
=========
Frontend editing related extensions like EXT:feedit and EXT:frontend_editing
should no longer rely on core provided preparation. The stdWrap functionality
can be integrated with stdWrap related hooks, the `EDITPANEL` cObj can be registered
as extension provided content object, which obsoleted the use of the
:php:`typo3/classes/class.frontendedit.php` hook.
.. index:: Frontend, PHP-API, TypoScript, PartiallyScanned, EXT:frontend
......@@ -29,6 +29,7 @@ tt_content.bullets {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], bodytext [bullets_type]
editIcons {
beforeLastTag = 1
......
......@@ -7,6 +7,7 @@ tt_content.header =< lib.contentElement
tt_content.header {
templateName = Header
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout|header_link], subheader, date
editIcons {
beforeLastTag = 1
......
......@@ -7,6 +7,7 @@ tt_content.html =< lib.contentElement
tt_content.html {
templateName = Html
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: bodytext
editIcons {
beforeLastTag = 1
......
......@@ -21,6 +21,7 @@ tt_content.image {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content : image [imageorient|imagewidth|imageheight], [imagecols|imageborder], image_zoom
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.image
......
......@@ -7,6 +7,7 @@ tt_content.list =< lib.contentElement
tt_content.list {
templateName = List
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], list_type, layout, pages [recursive]
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.list
......
......@@ -20,6 +20,7 @@ tt_content.menu_abstract {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -29,6 +29,7 @@ tt_content.menu_categorized_content {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], selected_categories, category_field
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -25,6 +25,7 @@ tt_content.menu_categorized_pages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], selected_categories, category_field
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -20,6 +20,7 @@ tt_content.menu_pages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -24,6 +24,7 @@ tt_content.menu_recently_updated {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -24,6 +24,7 @@ tt_content.menu_related_pages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -55,6 +55,7 @@ tt_content.menu_section {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -33,6 +33,7 @@ tt_content.menu_section_pages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -19,6 +19,7 @@ tt_content.menu_sitemap {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -21,6 +21,7 @@ tt_content.menu_sitemap_pages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -20,6 +20,7 @@ tt_content.menu_subpages {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], pages
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.menu
......
......@@ -15,6 +15,7 @@ tt_content.shortcut {
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], records
editIcons {
iconTitle.data = LLL:EXT:fluid_styled_content/Resources/Private/Language/FrontendEditing.xlf:editIcon.shortcut
......
......@@ -30,6 +30,7 @@ tt_content.table {
}
}
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: header [header_layout], bodytext, [table_caption|cols|table_header_position|table_tfoot]
editIcons {
beforeLastTag = 1
......
......@@ -7,6 +7,7 @@ tt_content.text =< lib.contentElement
tt_content.text {
templateName = Text
stdWrap {
# @deprecated since v11: stdWrap.editIcons. Will be removed with v12.
editIcons = tt_content: bodytext
editIcons {
beforeLastTag = 1
......
Supports Markdown
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