Skip to content

Instantly share code, notes, and snippets.

@khuppenbauer
Last active August 29, 2015 13:57
Show Gist options
  • Save khuppenbauer/9559453 to your computer and use it in GitHub Desktop.
Save khuppenbauer/9559453 to your computer and use it in GitHub Desktop.
Integrate a Gist into your TYPO3 Neos Site
<script src="{settings.gist.uri}/{id}.js{f:if(condition:file, then: '?file={file};')}"></script>
prototype(Your.Package:Gist) {
settings = ${Configuration.setting('Your.Package')}
}
'Your.Package:Gist':
superTypes: ['TYPO3.Neos:Content']
ui:
label: 'Gist'
group: 'general'
icon: 'icon-github-alt'
inspector:
groups:
'gist':
label: 'Gist'
properties:
'id':
type: string
defaultValue: ''
ui:
label: 'id'
reloadIfChanged: TRUE
inspector:
group: 'gist'
'file':
type: string
defaultValue: ''
ui:
label: 'file'
reloadIfChanged: TRUE
inspector:
group: 'gist'
Your:
Package:
gist:
uri: 'https://gist.github.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment