Issue Feature Rejected

#105302Allow the referencing (=<) operator everywhere

Philipp Wrann 10/14/24, 11:03 updated 10/23/24, 13:45

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.