punktde / outofbandrendering
使用给定的原型路径渲染节点
2.3.0
2022-08-25 13:31 UTC
Requires
- neos/neos: ^7.0 || ^8.0
README
- 提供一个工厂,用于从CLI请求构建ControllerContext,为渲染融合代码做好准备,包括节点和资源链接。
- 提供一个EelHelper,用于进行融合对象的离线渲染。
例如,这可以用于渲染用于索引Elasticsearch索引的复杂输入。
安装
$ composer require punktde/outofbandrendering
配置
您可能需要设置在CLI上下文中使用的基准URI。如果没有设置,则使用"/"和"http://localhost"。
Neos: Flow: http: baseUri: https://example.com/
示例
在我们的Settings.yaml文件中
Neos: ContentRepository: Search: defaultContext: FusionRendering: PunktDe\OutOfBandRendering\Eel\FusionRenderingHelper
使用给定的prototypePath在索引时间渲染建议
__myProperty: search: elasticSearchMapping: type: keyword indexing: '${FusionRendering.render(node, "pathToProtoType")}'