Skip to content

9.0 FEATURE: Dynamic placeholders in Neos.Neos:Editable #4430

Closed as not planned
@crydotsnake

Description

Is there an existing issue for this topic?

  • I have searched the existing issues

Description

Description

The idea came up in a blog post from @jonnitto and i quite liked the idea.

Currently its possible to set a placeholder via the NodeType configuration when InlineEditable is set too true.

But what is when i would like to output the title of a document for example? Like in the example from the blog post it could look like:

headline = Neos.Neos:Editable {
    property = 'headline'
    block = false
    fallback = ${q(node).property('title')}
}

And then the fallback will be rendered in the frontend.

Important to know

But if I now set a fallback in my fusion component, it should check if a placeholder is already set in the NodeType (ui.inspector.editorOptions.placeholder). Then we should decide whether the fallback in the fusion part or the placeholder part in the NodeType should be output. However, the placeholder in the NodeType is ONLY displayed in the backend and not in the frontend. Therefore, I would rather tend to use the fallback in the Fusion part.

I believe the check for that would be part of the Neos UI ?

Possible Solution

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions