codeq/passthrougheditor

This Neos UI editor plugin takes one configured value and saves it transformed into another field.

Installs: 111

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 18

Language:JavaScript

Type:neos-package

v1.0.1 2019-09-24 13:43 UTC

This package is auto-updated.

Last update: 2024-12-09 13:59:22 UTC


README

This package provides a dummy text editor that does one thing: take a value from editorOptions.value and sets it as a value. It could be useful when doing something unusual with Dynamic Client-side Configuration. Anyways, see an example below.

Installation

  1. composer require '@codeq/passthrougheditor'
  2. Start using the editor in NodeTypes.yaml, e.g.:
Some:NodeType:
  properties:
    geopoint:
      type: Ttree\GoogleMapEditor\GeoPoint
      ui:
        inspector:
          editor: Ttree.GoogleMapEditor/Inspector/Editors/GeoPointEditor
          group: 'geo'
    latitude:
      type: string
      ui:
        inspector:
          editor: CodeQ.PassthroughEditor/Inspector/Editors/PassthroughEditor
          editorOptions:
            value: 'ClientEval:node.properties.geopoint && node.properties.geopoint[0]'
          group: 'geo'

In this example we get the latitude from geopoint property and save it in latitude property.