DirkPersky / typo3-dp_cookieconsent

TYPO3 Extension: Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)
GNU Affero General Public License v3.0
32 stars 27 forks source link

Overlay with link to {settings.url} #50

Closed CodeContent closed 4 years ago

CodeContent commented 4 years ago

Is there a way to integrate a link zu a Cookie Information page in the iframe overlay text?

DirkPersky commented 4 years ago

added it in ne commit. You can modify the partial "IframeOverlay.html"

<div class="dp--overlay-inner">
    <div class="dp--overlay-header"><f:format.raw>{{</f:format.raw>notice}}</div>
    <div class="dp--overlay-description">
        <f:format.raw>{{</f:format.raw>desc}}
        <f:if condition="{settings.url}">
            <a aria-label="learn more about cookies"
               role=button tabindex="0"
               class="cc-link"
               href="{f:uri.page(pageUid:'{settings.url}')}"
               rel="noopener noreferrer nofollow"
               target="{settings.target}"
            >
                <f:translate key="link" extensionName="dp_cookieconsent" />
            </a>
        </f:if>
    </div>
    <div class="dp--overlay-button">
        <button class="db--overlay-submit" onclick="window.DPCookieConsent.forceAccept(this)"
                data-cookieconsent="<f:format.raw>{{</f:format.raw>type}}" <f:format.raw>{{</f:format.raw>style}}>
            <f:format.raw>{{</f:format.raw>btn}}
        </button>
    </div>
</div>