[!!!][TASK] Redesign FluidTemplateDataProcessorInterface
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 7.3 / Feature-66907-AddDataProcessingToFluidTemplateContentObject.rst
1 =====================================================================
2 Feature: #66907 - Add Data Processing to FLUIDTEMPLATE content object
3 =====================================================================
4
5 Description
6 ===========
7
8 cObject FLUIDTEMPLATE has been extended with ``dataProcessing``. This setting can be used to add one or multiple processors to
9 manipulate data of the currently rendered content object, like tt_content or page, and fill a key/value store that will be passed
10 as variables to the Fluid template, where every key of the key/value store will be available as variable in the Fluid template.
11
12 - dataProcessing = array of class references by full namespace
13
14
15 Example:
16 --------
17
18 .. code-block:: typoscript
19
20 my_custom_ctype = FLUIDTEMPLATE
21 my_custom_ctype {
22 templateRootPaths {
23 10 = EXT:your_extension_key/Resources/Private/Templates
24 }
25 templateName = CustomName
26 settings {
27 extraParam = 1
28 }
29 dataProcessing {
30 1 = Vendor\YourExtensionKey\DataProcessing\MyFirstCustomProcessor
31 2 = Vendor2\AnotherExtensionKey\DataProcessing\MySecondCustomProcessor
32 2 {
33 options {
34 myOption = SomeValue
35 }
36 }
37 }
38 }
39
40
41 Impact
42 ======
43
44 The data processors can be used in all new projects. There is no interference with any part of existing code.