codeq/passthrougheditor

Last activity on 5 May 2021
  • 106
composer require codeq/passthrougheditor

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

v1.0.1

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

Version
v1.0.1
Type
neos-package
Release Date
24.09.2019 13:43:11
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 7d5c021777eeb9d34a7b4bb61a3cfc2fcf8fae65

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.

The content of the readme is provided by Github
The same vendor provides 18 package(s).