没有配置通过Typoscript的Ajax反应表单

时间:2015-05-15 15:45:31

标签: ajax typo3 typoscript

通过Typoscript我想用ajax处理一个反应表单。我已经使用下面显示的Typoscript代码配置了页面。

但是我一直收到Typo3错误,表明页面没有配置?

1294587217:页面未配置! [类型= 15191] []。这意味着没有配置了typeNum = 15191的PAGE类型的TypoScript对象。

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   
   } 
}

0 个答案:

没有答案