You should not place tt_content
element containing the plugin, but plugin itself, like:
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 similar question
You don't need to modify CSC in this case.
Of course in such case you need to make your extension configurable via TS (preferably with option for merging TS config with FlexForm, like this)
Alternative:
- You can also create a new page (let's name it
Voucher page
) - put the tt_conent with your flexform there. - Get its
uid
(let's say it's123
) and add it to ajax link ie.:index.php?id=123&type=1234
At the page create empty TypoScript template (not root!) and in
Settings
field remove all formattings from CSC (as you showed us)lib.stdheader > lib.header > etc...
You can also use TypoScript conditions for clearing CSC on given pages only ie.
[globalVar = TSFE:id = 123]
lib.stdheader >
lib.header >
[end]
or for type
parameter only (I read somewhere that there was a bug with it, but not confirmed, so it should work as well):
[globalVar = GP:type = 1234]
lib.stdheader >
lib.header >
[end]