[TYPO3-core] Preventing optionSplit in FILES

Christian Futterlieb christian at futterlieb.ch
Tue Jan 27 13:15:13 CET 2015


Hi all!

I'd like to discuss my idea for a possible solution of [1]. I think,
this issue should be taken care of, because it breaks the TYPO3 key
feature "Responsive Image Rendering" [2].

Now the idea: we could add an option 'excludeFromOptionSplit' of type
array to the FILES cObject. Within one offset, it's possible to specify
a more path, which will the be excluded from optionSplit. For example
(taken from [1]):

lib.test = FILES
lib.test {
    [...]
    excludeFromOptionSplit.10 = renderObj/source

    renderObj.source = |*|###SRC### ###SRCSETCANDIDATE###,|*|###SRC###
###SRCSETCANDIDATE###
    }
    [...]

}

In TYPO3\CMS\Frontend\ContentObject\FilesContentObject::render() we
could restore the specified paths in $splitConf by using
TYPO3\CMS\Core\Utility\ArrayUtility.

What is your opinion on this?

Regards, Christian


[1] https://forge.typo3.org/issues/59533
[2] http://typo3.org/typo3-cms/key-features/


More information about the TYPO3-team-core mailing list