You cannot place tt_contentan element containing a plugin, but the plugin itself, for example:
ajax = PAGE
ajax {
typeNum = 1234
10 < plugin.myextension_pi1
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
}
see also a similar question
In this case, you do not need to change the CSC.
Of course, in this case you need to configure your extension through TS (preferably with the ability to combine TS config with FlexForm, like this )
Alternative:
TypoScript CSC , ..
[globalVar = TSFE:id = 123]
lib.stdheader >
lib.header >
[end]
type ( - , , , ):
[globalVar = GP:type = 1234]
lib.stdheader >
lib.header >
[end]