i13e / sourceinjector
Inject HTML/JS/CSS-Snippets directly out of the Neos CMS backend into frontend pages
Installs: 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/fusion: >=5.3
- neos/fusion-afx: *
- neos/neos: >=5.3
README
Inject HTML/JS/CSS-Snippets directly out of the Neos CMS backend into frontend pages
This package gives editors the ability to inject HTML, JS or CSS snippets into frontpages directly out of the backend.
Installation
Run composer require i13e/sourceinjector
.
Usage
After installation you shall be able to place an "Injections" node into your document tree.
Afterwards add as many "Injection" nodes you like with as many "Code" nodes you wan't into it.
By default, only Neos.Neos:Administrator
privileged users are able to administrate injections.
All other users should be given I13e.SourceInjector:InjectionEditor
to make injections editable.
If you aren't using head
, closingHeadTag
, body
or closingBodyTag
please adjust the injection output to your likes.
See Override/Page.fusion
headStart = I13e.SourceInjector:Action.Inject {
@position = 'before head'
position = 'head_start'
}
headEnd = I13e.SourceInjector:Action.Inject {
@position = 'before closingHeadTag'
position = 'head_end'
}
bodyStart = I13e.SourceInjector:Action.Inject {
@position = 'before body'
position = 'body_start'
}
bodyEnd = I13e.SourceInjector:Action.Inject {
@position = 'before closingBodyTag'
position = 'body_end'
}
}
Settings
There aren't many settings available.
I13e: SourceInjector: enableDebugComments: false # Default: false, output HTML-Comments before & after each injection code
Roadmap
In feature versions we'll maybe implement more features like:
- Integration of KaufmannDigital.GDPR.CookieConsent
- Exclusion rules
Contribution
If you'd like to contribute simply create a pull-request.
Proudly developed in the Hanover Region