DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

TypoScriptΒΆ

If you add the static template, this TypoScript is added to your system:

page {
    includeJSFooter.powermailCond = EXT:powermail_cond/Resources/Public/JavaScript/PowermailCondition.js

    3132 = COA
    3132 {
        wrap = <script id="powermail_conditions_container"|></script>

        # Uri to send AJAX request
        10 = TEXT
        10 {
            noTrimWrap = | data-condition-uri="|"|
            typolink {
                parameter.data = TSFE:id
                additionalParams = &type=3132
                returnLast = url
                forceAbsoluteUrl = 1
            }
        }
    }
}

powermailCondition = PAGE
powermailCondition {
    typeNum = 3132
    config {
        disableAllHeaderCode = 1
        xhtml_cleaning = 0
        admPanel = 0
        metaCharset = UTF-8
        additionalHeaders = Content-type: application/json
        no_cache = 1
        debug = 0
    }

    10 = USER
    10 {
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        extensionName = PowermailCond
        vendorName = In2code
        controller = Condition
        pluginName = Pi1
    }
}