does this help? Fusion check if in Backend or Live/Frontend rendered - Community / Newcomer’s Corner - Discuss Neos – the official forum of the Neos project
i fixed your syntax a bit ^^
and added
node.context.inBackend / node.context.Live
prototype(WG.Site:Content.GoogleMaps) < prototype(Neos.Neos:ContentComponent) {
maps = ${q(node).property('maps')}
layerImage = ${q(node).property('layerImage')}
layerText = ${q(node).property('layerText')}
allowMaps = ${request.httpRequest.cookieParams.customMaps}
renderer = afx`
<div @if.mapAndCookie={props.maps && props.allowMaps} class="responsive-maps">
{props.maps}
</div>
<div @if.mapAndNoCookieAndLive={props.maps && !props.allowMaps && node.context.Live} class="cell text-center">
<div class="maps-layer">
{props.layerImage}
{props.layerText}
<br/>
<a class="button-link google confirm" title="Google Maps laden">Google Maps laden</a>
</div>
</div>
<div @if.noMapAndBackend={!props.maps && node.context.inBackend}>
Bitte den Google Maps Code eingeben!
</div>
`
}
prototype(Neos.Fusion:GlobalCacheIdentifiers) {
legalaccept = ${request.httpRequest.cookieParams.customMaps}
}