Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prgfx/prgfx.neos.dynamicplaceholder
Enables setting the Neos inline editor placeholder with ClientEval
https://github.com/prgfx/prgfx.neos.dynamicplaceholder
neoscms
Last synced: 1 day ago
JSON representation
Enables setting the Neos inline editor placeholder with ClientEval
- Host: GitHub
- URL: https://github.com/prgfx/prgfx.neos.dynamicplaceholder
- Owner: PRGfx
- License: gpl-3.0
- Created: 2022-05-06T12:32:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T12:34:17.000Z (over 2 years ago)
- Last Synced: 2024-09-18T02:19:16.810Z (2 months ago)
- Topics: neoscms
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Version](https://poser.pugx.org/prgfx/neos-dynamic-placeholder/version)](//packagist.org/packages/prgfx/neos-dynamic-placeholder)
# Prgfx.Neos.DynamicPlaceholder
This package allows to use `ClientEval:` statements in inline editor placeholders (see [Feature Request](https://github.com/neos/neos-ui/issues/2837)).
```
composer require prgfx/neos-dynamic-placeholder
```## Example
```yaml
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.