Skip to content

How to remove unneccesary checkboxes

Dirk Persky edited this page Dec 18, 2019 · 2 revisions

Remove the prefill of the checkbox field

typoscript

lib.dp_cookieconsent.settings.checkboxes.marketing >

Change the Template and remove the Checkbox

<div class="dp--cookie-check" xmlns:f="http://www.w3.org/1999/html">
    <label for="dp--cookie-require">
        <f:form.checkbox id="dp--cookie-require" class="dp--check-box" value="" disabled="disabled" checked="true" />
        <f:translate key="dpRequire" extensionName="dp_cookieconsent" />
    </label>
    <label for="dp--cookie-statistics">
        <f:form.checkbox id="dp--cookie-statistics" class="dp--check-box" checked="{settings.checkboxes.statistics}" value="" />
        <f:translate key="dpStatistik" extensionName="dp_cookieconsent" />
    </label>
</div>
Clone this wiki locally