Bug #71197
closedIncluding relative Paths with INCLUDE_TYPOSCRIPT not possible on subpages with "root" templates
100%
Description
Steps to reproduce:
- Create a new page tree with a root template
- Create a subpage with a root template itself (check "clear setup" ceckbox und options!)
- Include the static file of fluid_styled_content in the template of the subpage
- Go to ObjectBrowser of this template and choose "setup"
- The relative paths e.g. to
./Setup/lib.parseFunc.ts
could not be resolved
Reason: In \TYPO3\CMS\Core\TypoScript\TemplateService
there are three arrays $config, $constants
and $templateIncludePaths
. These need to be in sync so that the method processIncludes
can work properly. Unfortunatly if a checkbox for clearing constants or setup is checked the following code kicks in:
if ($row['clear']) { $clConst = $row['clear'] & 1; $clConf = $row['clear'] & 2; if ($clConst) { $this->constants = array(); $this->clearList_const = array(); } if ($clConf) { $this->config = array(); $this->hierarchyInfoToRoot = array(); $this->clearList_setup = array(); } }
Here $this->constants
and/or $this->config
it set to an empty array which braks the sync to $this->templateIncludePaths
. The array $this->constants
and $this->config
must not be altered in terms of number of containing items but mus instead only contain empty items if they have been cleared.
Updated by Gerrit Code Review about 9 years ago
- Status changed from New 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 https://review.typo3.org/44432
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44432
Updated by Daniel Goerz about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0ae87d3a7db81a7bb41c983516a6390f64fde069.
Updated by Gerrit Code Review almost 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44952
Updated by Daniel Goerz almost 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset f6b770a2f14c6e8b2f3a100b458f24173086913e.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed