Bug #67116

Plugin templates are always loaded twice!?

Added by Harald no-lastname-given 2 months ago. Updated 2 months ago.

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

plugin-templates-always-twice.JPG (109.8 kB) Harald no-lastname-given, 2015-05-23 14:17

select-template-analyse-css-styled-content-static.JPG (29.6 kB) Harald no-lastname-given, 2015-05-23 14:17


Related issues

related to Core - Task #55942: More robust way of appending TypoScript to contentrenderi... Resolved 2014-02-12

Associated revisions

Revision c28a8f37
Added by Markus Klein 2 months ago

[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 <>
Reviewed-by: Stefan Neufeind <>
Reviewed-by: Helmut Hummel <>
Tested-by: Helmut Hummel <>
Reviewed-by: Stephan Großberndt <>
Tested-by: Stefan Neufeind <>

Revision 8d3bc4ca
Added by Markus Klein 2 months ago

[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 <>
Tested-by: Markus Klein <>

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

#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

Also available in: Atom PDF