Skip to content

[DOCS] Improve documentation on FilesProcessor#875

Open
kitzberger wants to merge 1 commit intoTYPO3-Headless:masterfrom
GFEMediaGmbH:improve-docs-on-fileprocessor
Open

[DOCS] Improve documentation on FilesProcessor#875
kitzberger wants to merge 1 commit intoTYPO3-Headless:masterfrom
GFEMediaGmbH:improve-docs-on-fileprocessor

Conversation

@kitzberger
Copy link
Copy Markdown
Contributor

@kitzberger kitzberger commented Mar 19, 2026

I've struggled today with the fact that if I want to use cObjects for the processingConfiguration properties then I have to provide a dummy value first.

lib.image.dataProcessing.10 = FriendsOfTYPO3\Headless\DataProcessing\FilesProcessor
lib.image.dataProcessing.10 {
   processingConfiguration {
      # Simple static value
      width = 800

      # Using stdWrap override
      width = 800
      width.override = 1200

      # This works by accident because "data" is a stdWrap property and TEXT is just treated as the dummy value but NOT as the TextContentObject
      width = TEXT
      width.data.field = imagewidth

      # This doesn't work for "value" is not stdWrap property, so this just stays "TEXT"
      width = TEXT
      width.value = 123

      # This will NOT work ("CASE" is treated as a literal string):
      width = CASE
      width.key.field = layout

      # Using a cObject for dynamic values — note the dummy value and .cObject syntax
      width = 1
      width.cObject = CASE
      width.cObject {
         key.field = layout
         1 = TEXT
         1.value = 400
         2 = TEXT
         2.value = 800
      }
   }
}

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23288668214

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 73.307%

Totals Coverage Status
Change from base Build 23060679878: 0.0%
Covered Lines: 1126
Relevant Lines: 1536

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants