From 7b58a93a46deb7785aaa2770a0518d6b5609ae03 Mon Sep 17 00:00:00 2001 From: Raffael Comi Date: Mon, 4 Jun 2018 13:23:51 +0200 Subject: [PATCH] TASK: Only add js&css to page if plugin is enabled --- Resources/Private/Fusion/Root.fusion | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/Private/Fusion/Root.fusion b/Resources/Private/Fusion/Root.fusion index d1a6395..0e14bb4 100644 --- a/Resources/Private/Fusion/Root.fusion +++ b/Resources/Private/Fusion/Root.fusion @@ -9,6 +9,7 @@ prototype(Page){ } } @if.onlyRenderNotInBackend = ${!node.context.inBackend} + @if.isEnabled = ${Configuration.setting('VIVOMEDIA.Fusion.CacheVisualisation.enabled')} } } @@ -21,5 +22,6 @@ prototype(Page){ } } @if.onlyRenderNotInBackend = ${!node.context.inBackend} + @if.isEnabled = ${Configuration.setting('VIVOMEDIA.Fusion.CacheVisualisation.enabled')} } }