Hello!
I’m using TYPO3 13.4.27, the plugin I’m describing worked without issue in TYPO3 12.4.44. I want this plugin to write the non-hidden file references attached to the current page into the pageMedia variable to then do stuff with in the fluid template.
I’m trying to update a TYPO3 installation from v12 to v13. The installation has a plugin on most pages, which will pass the first non-hidden image of the page to a fluid template and render it at the top of the page as a stage element. We use the typoscript type FLUIDTEMPLATE for that and provide the image via the FilesProcessor with the following configuration:
fce.basic = FLUIDTEMPLATE
fce.basic.dataProcessing.10 = flex-form
fce.standardElement < fce.basic
fce.standardElement {
dataProcessing {
20 = files
20 {
as = pageMedia
references.data = levelmedia: -1
}
}
file = [imagine a real path here].html
partialRootPath = [imagine a real path here]
}
from what I gather from the documentation of the FilesProcessor this will search the current page for file references and pass them to the frontend in the pageMedia variable which can then be used by fluid.
However, this throws an exception in the FilesProcessor on line 67 - a referencesUidList is generated via ContentObjectRenderer::stdWrapValue which contains both the hidden and visible file references. This then causes the FileCollector to (understandably) fail.
I’ve tried modifying the configuration by specifying fieldNameand table instead of data resulting in the following configuration:
fce.basic = FLUIDTEMPLATE
fce.basic.dataProcessing.10 = flex-form
fce.standardElement < fce.basic
fce.standardElement {
dataProcessing {
20 = files
20 {
as = pageMedia
references {
table = pages
fieldName = media
}
}
}
file = [imagine a real path here].html
partialRootPath = [imagine a real path here]
}
this then leads to the uid list from stdwrap being empty. I’m a little clueless at this point, any help would be greatly appreciated!