Skip to content

Instantly share code, notes, and snippets.

@aertmann
Created March 27, 2015 00:05
Show Gist options
  • Save aertmann/c8f2fb9171f96e7db530 to your computer and use it in GitHub Desktop.
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
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