Bug #67116
Plugin templates are always loaded twice!?
Status: | Resolved | Start date: | 2015-05-23 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Markus Klein | % Done: | 100% |
|
Category: | Content Rendering | Spent time: | - | |
Target version: | 6.2.13 | |||
TYPO3 Version: | 6.2 | Is Regression: | No | |
PHP Version: | 5.5 | Sprint Focus: | Stabilization Sprint | |
Complexity: | no-brainer |
Description
Hello developers!
I do not understand the following!
In an installation with TYPO3 version 6.2.12, I import via the "ext_localconf.php" my extension a TS template which is a function of an installed extension.
if ( \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search', $exitOnError = FALSE) ) {
# Setup
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY,
'setup','<INCLUDE_TYPOSCRIPT: source="FILE:EXT:blaaaaaa/Resources/Private/Extensions/indexed_search/Setup.ts">',
defaultContentRendering
);
}
If I now in the "Template Analyzer" click on the "EXT css_styled_content/static/" and all the way down sroll - after css_styled template, the embedded TS-Template will appear twice in a row?
And from the TYPO3 version 7.2.0 not only my TS-Template will appear twice in a row, but also all loaded System-Extension Templates!
I have also checked in a basic installation with no additional configurations. See it in the supplied images.
Is that normal?
Thank you
Harald
Related issues
Associated revisions
[BUGFIX] Don't add TypoScript twice to defaultContentRendering
Calling the addTypoScript() method with last parameter set to
'defaultContentRendering' must not add the TypoScript twice.
Resolves: #67116
Releases: master, 6.2
Change-Id: I3161c62ac0ab25369fabc3f8163e5d92356aa0ca
Reviewed-on: http://review.typo3.org/39680
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
[BUGFIX] Don't add TypoScript twice to defaultContentRendering
Calling the addTypoScript() method with last parameter set to
'defaultContentRendering' must not add the TypoScript twice.
Resolves: #67116
Releases: master, 6.2
Change-Id: I3161c62ac0ab25369fabc3f8163e5d92356aa0ca
Reviewed-on: http://review.typo3.org/39683
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
History
#1 Updated by Markus Klein 2 months ago
- Target version deleted (
7.2 (Frontend))
#2 Updated by Markus Klein 2 months ago
- Status changed from New to Accepted
- Target version set to 7.3 (Packages)
- Complexity set to medium
- Sprint Focus set to Stabilization Sprint
Thanks for the report, I can confirm that extensions are shown twice. We have to investigate whether these are only shown twice, or if they are actually stored twice into the cache.
#3 Updated by Markus Klein 2 months ago
- Assigned To set to Markus Klein
- Complexity changed from medium to no-brainer
Problem was introduced with https://review.typo3.org/#/c/27587/5/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
#4 Updated by Markus Klein 2 months ago
- Target version changed from 7.3 (Packages) to 6.2.13
- TYPO3 Version changed from 7 to 6.2
#5 Updated by Gerrit Code Review 2 months ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39680
#6 Updated by Gerrit Code Review 2 months ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39680
#7 Updated by Gerrit Code Review 2 months ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39683
#8 Updated by Markus Klein 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c28a8f372d74e095a934e4d4e789345fb35d7722.