2017 © Pedro Peláez
 

neos-package neos-creationdialogproperties

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

image

wwwision/neos-creationdialogproperties

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

  • Monday, May 14, 2018
  • by bwaidelich
  • Repository
  • 2 Watchers
  • 4 Stars
  • 1,222 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 41 % Grown

The README.md

Wwwision.Neos.CreationDialogProperties

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3., (*1)

DISCLAIMER / BACKGROUND

Neos 3.3 ships with a great new feature called CreationDialog that allows NodeType definitions to specify a dialog that is displayed upon creation of a corresponding node., (*2)

By default a custom nodeCreationHandler has to be implemented to process the data of the *CreationDialog**. This package provides a generic handler that allows to easily expose certain node properties to be displayed in the dialog., (*3)

With Neos 5.1. the functionality of this package has been introduced to the core (see documentation). Thus there is no version of this package compatible for Neos 5.1 and above., (*4)

Usage

  1. Install package via composer require wwwision/neos-creationdialogproperties
  2. Extend NodeType definitions, adding the showInCreationDialog option:

Example Node Type Configuration

'Some.Package:Some.NodeType':
  superTypes:
    'Neos.Neos:Content': true
  ui:
    label: 'Some Content Element'
    # ...
  properties:
    'property1':
      type: string
      options:
        showInCreationDialog: true
      validation:
        'Neos.Neos/Validation/NotEmptyValidator': []
      ui:
        label: 'Mandatory link property'
        inspector:
          editor: 'Neos.Neos/Inspector/Editors/LinkEditor'
    'property2':
      type: string
      options:
        showInCreationDialog: true
      ui:
        label: 'Optional selector property'
        inspector:
          editor: 'Neos.Neos/Inspector/Editors/SelectBoxEditor'
          editorOptions:
            values:
              'value1':
                label: 'Label 01'
              'value2':
                label: 'Label 02'

The above will result in the following Creation Dialog to be displayed whenever a node of the corresponding type is inserted:, (*5)

Screenshot of the creation dialog, (*6)

The Versions

14/05 2018

dev-master

9999999-dev

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

  Sources   Download

MIT

The Requires

 

14/05 2018

0.3.0

0.3.0.0

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

  Sources   Download

MIT

The Requires

 

23/01 2018

0.2.0

0.2.0.0

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

  Sources   Download

MIT

The Requires

 

03/01 2018

0.1.0

0.1.0.0

Simple package to easily expose Node properties to the CreationDialog that's available since Neos 3.3.

  Sources   Download

MIT

The Requires