Project

General

Profile

Actions

Bug #103811

closed

lib.contentElement.templateRootPaths. 1200 not loaded in automatic loaded TypoScript

Added by Heinz Schilling 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-05-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TypoScript is loaded automatically in custom extensions:

call_user_func(function()
{
    ExtensionManagementUtility::addTypoScript(
        'extension_key',
        'setup',
        "@import 'EXT:extension_key/Configuration/TypoScript/setup.typoscript'" 
    );
});

This also works with one exception. lib.contentElement is not taken into account in this way:

lib.contentElement {
  templateRootPaths.1200 = EXT:extension_key/Resources/Private/Templates/
}

Actions #1

Updated by Riccardo De Contardi 5 months ago

  • Category set to TypoScript
Actions #2

Updated by Heinz Schilling 5 months ago

Problem is solved by using the additional parameter. Then the order of loading is ok and bug is gone:

call_user_func(function()
{
    ExtensionManagementUtility::addTypoScript(
        'extension_key',
        'setup',
        "@import 'EXT:extension_key/Configuration/TypoScript/setup.typoscript'",
        'defaultContentRendering'
    );
});

Task can be closed.

Actions #3

Updated by Georg Ringer 4 months ago

  • Status changed from New to Closed

closed as requested

Actions

Also available in: Atom PDF