通过Typoscript我想用ajax处理一个反应表单。我已经使用下面显示的Typoscript代码配置了页面。
但是我一直收到Typo3错误,表明页面没有配置?
ajaxComments = PAGE
ajaxComments {
typeNum = 15191
config.tx_realurl_enable = 0
config.disableAllHeaderCode = 1
config.disablePrefixComment = 1
config.metaCharset = UTF-8
config.no_cache = 1
config.additionalHeaders = Content-type:application/json
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
pluginName = backend
extensionName = extName
controller = Main
vendorName = venName
action = sendComment
switchableControllerActions {
Main{
1 = sendComment
}
}
settings =< plugin.tx_extName.settings
persistence =< plugin.tx_extName.persistence
view =< plugin.tx_extName.view
}
}