Skip to content

Enables setting the Neos inline editor placeholder with ClientEval

License

Notifications You must be signed in to change notification settings

PRGfx/Prgfx.Neos.DynamicPlaceholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Enables setting the Neos inline editor placeholder with ClientEval

Topics

Resources

License

Stars

Watchers

Forks