Processor options
This page lists the TypoScript options of the two data processors. Look them up here; for the surrounding pipeline see Architecture.
nb-content-blocks-json
Used as data (wired by the Site Set's lib.):
| Option | Type | Default | Description |
|---|---|---|---|
as | string | data | key of the built array in the processor result |
data | array | — | sub data processors, results merged into data — see Add sub data processors |
options. | string | — | image variant override per field identifier; merges over headless. (TypoScript wins) — see Define image variants |
options. | string | DATE_ | format for DateTime fields (PHP date format, e.g. U for timestamps) |
Example:
tt_content.vendor_myblock.fields.data.dataProcessing.10 {
as = data
options {
dateTimeFormat = Y-m-d
processing {
image {
desktop = width=1600c,fileExtension=webp
}
}
}
dataProcessing {
10 = menu
10 {
levels = 2
as = navigation
}
}
}
Processing strings use the ext:headless syntax: key=value pairs, comma-separated (width=883c,file) — accepted keys are the TYPO3 image processing instructions (width, height, file, crop, additional, ...).
nb-container-json
Used inside container Content Types (see Render containers):
| Option | Type | Default | Description |
|---|---|---|---|
col | int | — | container column whose children are fetched (e.g. 201) |
as | string | — | key for the children array |
Children are rendered through their own tt_ mapping — their conversion options (options., options.) are therefore configured there, not on nb-.
Site Set
The extension ships the Site Set nb- which replaces lib. (originally defined by EXT:content_blocks) with a lib. clone with the processor wired. EXT:content_blocks auto-maps every Content Block with a frontend template onto lib., so no manual TypoScript is needed — see Getting started → How it works for the two cases that do need one. Include the set in your site's config.:
dependencies:
- nb-headless-content-blocks/headless-content-blocks