Skip to content

Commit

Permalink
Feature: Possibility to add custom css
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikdro committed Mar 18, 2020
1 parent b319086 commit 97dcf59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ Neos:
routes:
KaufmannDigital.GDPR.CookieConsent:
position: 'before Neos.Neos'

KaufmannDigital:
GDPR:
CookieConsent:
customCSSFilepath: null
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ prototype(KaufmannDigital.GDPR.CookieConsent:Content.CookieSettings.Renderer) <

css = Neos.Fusion:Tag {
tagName = 'style'
content = ${File.readFile('resource://KaufmannDigital.GDPR.CookieConsent/Public/Styles/Main.css')}
content = Neos.Fusion:Array {
packageFile = ${File.readFile('resource://KaufmannDigital.GDPR.CookieConsent/Public/Styles/Main.css')}
customFile = ${File.readFile(Configuration.setting('KaufmannDigital.GDPR.CookieConsent.customCSSFilepath'))}
[email protected] = ${String.length(Configuration.setting('KaufmannDigital.GDPR.CookieConsent.customCSSFilepath'))}
}
}

jsVariables = Neos.Fusion:Tag {
Expand Down

0 comments on commit 97dcf59

Please sign in to comment.