punktde/outofbandrendering

Render a node using a given prototype path

Installs: 6 492

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 9

Forks: 2

Open Issues: 0

Type:neos-package

2.2.0 2021-07-14 07:13 UTC

This package is auto-updated.

Last update: 2021-09-14 07:43:32 UTC


README

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")}'