KaufmannDigital.GDPR.CookieConsent icon indicating copy to clipboard operation
KaufmannDigital.GDPR.CookieConsent copied to clipboard

Also set documentNode context in CookieSettingsPage.fusion

Open patricekaufmann opened this issue 1 year ago • 0 comments

Homepage rendering that relies on documentNode context fails when being rendered in backend since the context is not correct.

Suggestion:

    renderer = Neos.Fusion:Renderer {
        type = ${site.nodeType.name}
        @context.node = ${site}
        @context.documentNode = ${site}

        @process.addCookieSettings = ${String.pregReplace(value, '/(.*)<\/body>(.*)/s', '$1' + cookieSettings + "</body>$2")}
    }

patricekaufmann avatar Sep 12 '22 09:09 patricekaufmann