punktde/outofbandrendering

Letzte Aktivität 25 Aug 2022 3 2 22387
composer require punktde/outofbandrendering

Render a node using a given prototype path

2.3.0

Version
2.3.0
Type
neos-package
Release Date
Aug 25, 2022 13:31
Source
git
Distribution
zip
Requires
MIT e1fb71b464b699b3a2427bf7fad24f8fca48d364

Punktde.OutOfBandRendering

Latest Stable Version Total Downloads

  • Suplies a factory for building a ControllerContext out of a CLI request, that puts everything in place for rendering fusion code, includign node and resource links.
  • Supplies an EelHelper to do out of band rendering of fusion objects.

This can be useful for example to render complex input for indexing into an Elasticsearch index.

Installation

$ composer require punktde/outofbandrendering

Configuration

You'll may set the base URI used in CLI context. If not "/" and "http://localhost" is used.

Neos:
  Flow:
    http:
      baseUri: https://example.com/

Example

In our Settings.yaml

Neos:
  ContentRepository:
    Search:
      defaultContext:
        FusionRendering: PunktDe\OutOfBandRendering\Eel\FusionRenderingHelper

Render a suggestion during index time using the given prototypePath:

__myProperty:
  search:
    elasticSearchMapping:
      type: keyword
    indexing: '${FusionRendering.render(node, "pathToProtoType")}'
The content of the readme is provided by Github
The same vendor provides 33 package(s).