#106893`filesProcessedDataKey` only checks first level
Description
given a PAGE has an IMAGE @ [media] an gets linked via [header_link] from a CONTENT-ELEMENT
https://docs.typo3.org/m/typo3/reference-typoscript/12.4/en-us/DataProcessing/GalleryProcessor.html#confval-galleryprocessor-filesprocesseddatakey
https://github.com/TYPO3-CMS/frontend/blob/18b2e3d8123c4384b2929b5ae6bdd29671bb731c/Classes/DataProcessing/GalleryProcessor.php#L253
should be possible the FILES procsr. loads from `pages`
and therefore overloads $processedData[‘files’] array -> looks like parameter uid/uidInList getting ignored
tt_content.textpic {
dataProcessing {
15 = files
15 {
#references.table = pages
references.fieldName = media
references.uid.stdWrap {
field = header_link
split {
token.char = 61
returnKey = 1
}
intval = 1
}
as = files
maxItems = 1
if.isTrue.field = header_link
}
cause this does not work .. @everyone ; any idea why?
need to layer ..
tt_content.textpic {
dataProcessing {
15 = database-query
15 {
table = pages
pidInList = 0
uidInList.stdWrap {
field = header_link
split {
token.char = 61
returnKey = 1
}
intval = 1
}
dataProcessing {
10 = files
10 {
references.fieldName = media
maxItems = 1
as = file
}
}
as = page
maxItems = 1
if.isTrue.field = header_link
}
tt_content.textpic.dataProcessing.20.filesProcessedDataKey = page.0.filehttps://github.com/TYPO3-CMS/fluid_styled_content/blob/6b02cb0a4234c1ae83f0b60b68aaf90eb963e558/Configuration/TypoScript/ContentElement/Textpic.typoscript#L14
it should be possible to overload the GALLERY procsr. with (typo3 default array) DOT-NOTATION
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 14
-
Garvin Hicking commented and changed status
NewNeeds Feedback 06/16/25, 21:58 -
Garvin Hicking changed category 06/16/25, 21:58
-
Marcus Förster commented 06/17/25, 14:34
Garvin Hicking wrote in #note-1:
> Where do you call the GalleryProcessor in your typoscript, I don’t see it there?tt_content.textpic
> Could you please write a more detailed issue, what you are trying to accomplish, what you tried, what you expected and what was the actual result, and what you belive is the problem here?
either the FILES procsr. loads from `pages` (example#1) looks like parameter uid/uidInList getting ignored
or it should be possible to overload the GALLERY procsr. with (typo3 default array) DOT-NOTATION--- cms-frontend/Classes/DataProcessing/GalleryProcessor.bak 2025-06-10 13:45:13.000000000 +0200 +++ cms-frontend/Classes/DataProcessing/GalleryProcessor.php 2025-06-16 20:45:41.737667825 +0200 @@ -250,6 +250,11 @@ $processorConfiguration, 'files' ); + + if (isset($processedData['page'][0]['file']) && is_array($processedData['page'][0]['file']) && !empty($processedData['page'][0]['file'])) { + $this->fileObjects = $processedData['page'][0]['file']; + $this->galleryData['count']['files'] = count($this->fileObjects); + } else if (isset($processedData[$filesProcessedDataKey]) && is_array($processedData[$filesProcessedDataKey])) { $this->fileObjects = $processedData[$filesProcessedDataKey]; $this->galleryData['count']['files'] = count($this->fileObjects);important/ also the typo3-src. should check for `empty`
-
Marcus Förster commented 06/17/25, 14:35
fyi/ this extracts the page-(u)id from [header_link]
.stdWrap { field = header_link split { token.char = 61 returnKey = 1 } intval = 1 } -
Sybille Peters commented and changed attached forge_descrition_edit.png 06/19/25, 08:52
Markus, my 2c: It seems difficult to figure out what the problem is. Maybe your issue is clear to you but you start with “cause this does not work”. Cause what?
In case you don’t know, you can edit the issue after it is saved by
1. click on “Edit” in top right
2. Click on pencil next to “description”forge_descrition_edit.png
(It took me years until I found about this).
If you directly edit the issue and give it a full and clear description, readers do not have to read multiple comments to figure out the problem.
I have found (and this has also been taught in the contribution workshop I attended) that adding a “Steps to reproduce”, “Expected result” and “Actual result” are helpful.
Please note that several people will be reading the issue, not just those who hopefully fix it, review the patch (patch often goes through multiple steps), but also those who do issue maintenance. It saves everyone a lot of time, if the issue description and title is as clear as possible!
Thanks.
-
Marcus Förster changed description 06/19/25, 10:18
-
Marcus Förster changed description 06/19/25, 10:19
-
Marcus Förster changed
forge_descrition_edit.png06/19/25, 10:19 -
Marcus Förster commented 06/19/25, 10:21
Sybille Peters wrote in #note-5:
> Markusthats not my name but ok ..
> It seems difficult to figure out what the problem is. Maybe your issue is clear to you but you start with “cause this does not work”. Cause what?
it got an update ; but should be obvious that it uses fluid-style-content
> In case you don’t know, you can edit the issue after it is saved
thx
-
Marcus Förster changed description 06/19/25, 10:22
-
Marcus Förster changed description 06/19/25, 10:22
-
Marcus Förster changed description 06/19/25, 10:40
-
Garvin Hicking commented and changed status
Needs FeedbackRejected 07/13/25, 20:05Too unclear to understand/solve, we’re sorry.
Where do you call the GalleryProcessor in your typoscript, I don’t see it there?
Could you please write a more detailed issue, what you are trying to accomplish, what you tried, what you expected and what was the actual result, and what you belive is the problem here?
Please use full sentences, chatgpt or something like that might help you in writing this – without a more precise way to follow your report, at least I cannot be of help to it. But I would like to understand and help.
Thanks for understanding and your initiative to report this.