flowpack/structuredediting

Last activity on 5 May 2021
  • 21
  • 4
  • 1885
composer require flowpack/structuredediting

Structured editing for Neos

2.0

Structured editing for Neos

Version
2.0
Type
neos-package
Release Date
29.07.2020 07:21:14
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
Replaces
None
GPL-3.0-or-later 536b7412e458e05c59ff084b2c14a36fc8ffdf4a

Structured Inline Editing for Neos CMS

Allows to reuse inspector editors inline. Hint: put all content-related properties inline and leave only metadata properties in the inspector.

Demo

Getting started:

  1. composer require 'flowpack/structuredediting:@dev'
  2. Configure your nodetype properties to be inline editable like this:
'Some.Node:Type'
  properties:
    date:
      type: DateTime
      defaultValue: now
      ui:
        label: Date
        reloadIfChanged: true
        inline:
          editor: 'Flowpack.StructuredEditing/EditorEnvelope'
          editorOptions:
            format: 'd-m-Y H:i'
            editor: 'Neos.Neos/Inspector/Editors/DateTimeEditor'
  1. Render an editable annotation for this field, using usual ContentElementEditable annotation, which will be turned into the pencil edit icon:
prototype(Some.Node:Type) < prototype(Neos.Fusion:Array) {
 dateEditable = ContentElementEditable {
	 property = 'date'
 }
 date = ${Date.format(node.properties.date, 'd-m-Y')}
 @process.contentElementWrapping = ContentElementWrapping
}

The concept behind this package will be merged back into the core once it matures, for now let's try it out in practice!

The content of the readme is provided by Github
The same vendor provides 53 package(s).