mktoolsAjaxHandler = PAGE
mktoolsAjaxHandler {
    typeNum = 9267
    config {
        disableAllHeaderCode = 1
        additionalHeaders = Content-Type: text/html; charset=UTF-8|X-Robots-Tag: noindex;
        metaCharset = utf-8
        xhtml_cleaning = 0
        admPanel = 0
        debug = 0
    }
    1 >
    8 >
    10 = USER
    10.userFunc = DMK\Mktools\Action\Ajax\ContentRendererAction->renderContent
}

page.includeJSFooterlibs {
    mktoolsBase = EXT:mktools/Resources/Public/JavaScript/Base.js
    ### falls URL in die Browser History eingetragen werden soll
    #mktoolsLocation = EXT:mktools/Resources/Public/JavaScript/Location.js
    #mktoolsHistory = EXT:mktools/Resources/Public/JavaScript/History.js
    mktoolsRequest = EXT:mktools/Resources/Public/JavaScript/Request.js
    mktoolsAjaxContent = EXT:mktools/Resources/Public/JavaScript/AjaxContent.js
    ### falls ein Formular mit Bildupload verwendet wird, dann folgendes JS einbinden
    #mktoolsAjaxForm = EXT:mktools/Resources/Public/JavaScript/jquery.form.min.js
}

### Configuration for the rn_base the link which loads USER_INT objects with ajax.
### Can be extended if you need parameters in that link for USER_INT plugins like a news ID.
### By default we link to the current page ID. The parameter contentid is added automatically.
### Attention: You should never set noHash or noCache for those links for performance reasons.
lib.tx_mktools.loadUserIntWithAjaxUrl{
    ### This adds the tx_ttnews[tt_news] parameter to the link if present.
    ### Might be useful if you want to load a comment plugin for news for example
    # useKeepVars = 1
    # useKeepVars.add = tx_ttnews::tt_news
}

### Adds the same possibility for configutation as the TS above.
### But for USER plugins.
lib.tx_mktools.loadUserWithAjaxUrl{
    ### This adds the tx_ttnews[tt_news] parameter to the link if present.
    ### Might be useful if you want to load a comment plugin for news for example
    # useKeepVars = 1
    # useKeepVars.add = tx_ttnews::tt_news
}
