Project

General

Profile

Actions

Bug #71197

closed

Including relative Paths with INCLUDE_TYPOSCRIPT not possible on subpages with "root" templates

Added by Daniel Goerz over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2015-10-31
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Steps to reproduce:

  1. Create a new page tree with a root template
  2. Create a subpage with a root template itself (check "clear setup" ceckbox und options!)
  3. Include the static file of fluid_styled_content in the template of the subpage
  4. Go to ObjectBrowser of this template and choose "setup"
  5. 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.

Actions #1

Updated by Gerrit Code Review over 8 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

Actions #2

Updated by Gerrit Code Review over 8 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

Actions #3

Updated by Daniel Goerz over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Gerrit Code Review over 8 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

Actions #5

Updated by Daniel Goerz over 8 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF