Inline Editable on Documents

Hi,

i’m not shure whats best practice to add inline editable properties to DocumentType.
I tried it like that:

fusion:

projectTitle = Neos.Neos:Editable {
    node=${node}
    property = 'projectTitle'
}

config:

"MyProject.Site:Document.Project":
  superTypes:
    "MyProject.Site:Document": true

  ui:
    icon: "icon-file"
    label: "Project"

  childNodes:
    main:
      type: "MyProject.Site:Collection.Content.Main"

  properties:
    projectTitle:
      type: string
      ui:
        inlineEditable: true
        inline:
          editorOptions:
            placeholder: "Projekt Titel hier einfügen"
            autoparagraph: false

The output of “projectTitle” is always empty and not editable.

Hope someone have a hint or an example for me. :slight_smile:

Inline editing for a property requires ContentElementWrapping for the node to be around. For content this usually happens automatically by Beos.Neos:ContentComponent but for the document it has to be added manually.

Ahhh i understand.
Thank you Martin. :slight_smile:

The solution is now:

    projectTitle = Neos.Neos:Editable {
        property = 'projectTitle'
        @process.contentElementWrapping = Neos.Neos:ContentElementWrapping
    }
2 Likes