Project

General

Profile

Actions

Feature #105302

closed

Allow the referencing (=<) operator everywhere

Added by Philipp Wrann about 1 month ago. Updated 29 days ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
TypoScript
Start date:
2024-10-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/TypoScript/Syntax/Operators/Index.html#typoscript-syntax-syntax-object-referencing

I would like to do something like this (random examples):

lib.foo = PAGE
lib.foo {
    typeNum = 1234567
    config {
        disableAllHeaderCode = 1
        disablePrefixComment = 1
        additionalHeaders {
            10 {
                header = X-Robots-Tag: noindex
            }
        }
    }
}

lib.bar =< lib.foo
lib.bar.typeNum = 7654321

lib.commonPart = Some\Vendor\DataProcessing\SomeProcessor
lib.commonPart {
  // (very) complex configuration
}

tt_content.SOME_TYPE.dataProcessing.200 =< lib.commonPart
tt_content.SOME_TYPE2.dataProcessing.200 =< lib.commonPart
tt_content.SOME_TYPE3.dataProcessing.200 =< lib.commonPart

Just using the copy operator works but i need to do many things over and over again. Imagine having a theme extension, that you use in multiple installations. You want to provide easy-to-adopt defaults...

Now - where the typoscript parser has been re-implemented - can the option to allow the referencing operator "everywhere" be re-evaluated?

It would help me hugely prevent repetitive code/configuration segments.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Actions

Also available in: Atom PDF