Created
March 27, 2015 00:05
-
-
Save aertmann/c8f2fb9171f96e7db530 to your computer and use it in GitHub Desktop.
Optimize the editor experience with custom JavaScript & CSS in Neos – Included in https://speakerdeck.com/aertmann/tasty-recipes-for-every-day-neos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(Page) { | |
head.stylesheets.backend = TYPO3.TypoScript:Tag { | |
tagName = 'link' | |
attributes { | |
rel = 'stylesheet' | |
href = TYPO3.TypoScript:ResourceUri { | |
package = 'Venstre.VenstreDk' | |
path = 'Styles/Backend.css' | |
} | |
} | |
@if.onlyRenderWhenNotInLiveWorkspace = ${node.context.workspace.name != 'live'} | |
} | |
body.javascripts.backend = TYPO3.TypoScript:Tag { | |
tagName = 'script' | |
attributes { | |
src = TYPO3.TypoScript:ResourceUri { | |
package = 'Venstre.VenstreDk' | |
path = 'JavaScript/Backend.min.js' | |
} | |
async = null | |
} | |
@if.onlyRenderWhenNotInLiveWorkspace = ${node.context.workspace.name != 'live'} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment