-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate plugin content element and plugin subtypes (list_type)
References TYPO3-Documentation/Changelog-To-Doc#1071 Releases: main
- Loading branch information
Showing
14 changed files
with
270 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Configuration/TCA/Overrides/tt_content_plugin_falexamples.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
defined('TYPO3') or die(); | ||
use TYPO3\CMS\Extbase\Utility\ExtensionUtility; | ||
|
||
// Register the FAL example plugin | ||
ExtensionUtility::registerPlugin( | ||
'Examples', | ||
'FalExamples', | ||
'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:falexample_plugin_title', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
defined('TYPO3') or die(); | ||
|
||
use TYPO3\CMS\Core\Schema\Struct\SelectItem; | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
|
||
$pluginSignature = 'examples_pi2'; | ||
|
||
// Add the plugins to the list of plugins | ||
ExtensionManagementUtility::addPlugin( | ||
new SelectItem( | ||
'select', | ||
'LLL:EXT:examples/Resources/Private/Language/locallang_db.xlf:tt_content.examples_pi2', | ||
$pluginSignature, | ||
'', | ||
'plugins', | ||
), | ||
'CType', | ||
'examples', | ||
); | ||
|
||
// Activate the display of the plug-in flexform field and set FlexForm definition | ||
ExtensionManagementUtility::addToAllTCAtypes( | ||
'tt_content', | ||
'--div--;Configuration,pi_flexform,', | ||
$pluginSignature, | ||
'after:subheader', | ||
); | ||
|
||
ExtensionManagementUtility::addPiFlexFormValue( | ||
'*', | ||
'FILE:EXT:examples/Configuration/Flexforms/flexform_ds2.xml', | ||
$pluginSignature, | ||
); |
Oops, something went wrong.