prgfx/neos-dynamic-placeholder

Enables setting the Neos inline editor placeholder with ClientEval

Installs: 171

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:neos-package

v0.1.0 2022-05-06 12:33 UTC

This package is auto-updated.

Last update: 2024-12-06 18:03:09 UTC


README

Version

Prgfx.Neos.DynamicPlaceholder

This package allows to use ClientEval: statements in inline editor placeholders (see Feature Request).

composer require prgfx/neos-dynamic-placeholder

Example

Vendor.Package:Page:
  superTypes:
    Neos.Neos:Page: true
  properties:
    displayTitle:
      type: string
      ui:
        inlineEditable: true
        inline:
          editorOptions:
            placeholder: ClientEval:node.properties.title

Eval Scope

  • node: the node the editor belongs to
  • editorOptions: the editorOptions, i.e. (original) placeholder, formatting etc.

This plugin works by decorating the original placeholder plugin in some hacky way and thus relies on that internal implementation to a certain extent. Use with care.

It has not been tested against different Neos versions.