i13e/sourceinjector
Composer 安装命令:
composer require i13e/sourceinjector
包简介
Inject HTML/JS/CSS-Snippets directly out of the Neos CMS backend into frontend pages
README 文档
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
统计信息
- 总下载量: 282
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-03