Skip to content

FEATURE: secondary inspector #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FEATURE: secondary inspector #13

wants to merge 1 commit into from

Conversation

dimaip
Copy link
Contributor

@dimaip dimaip commented Aug 6, 2020

Heads up! Neos applies default configs to inspector editors.
For inline editors we need to do it manually, e.g.

NodeType:
  properties:
    'chapterImage':
      type: 'Neos\Media\Domain\Model\ImageInterface'
      ui:
        label: i18n
        reloadIfChanged: true
        inspector:
          group: 'document'
        help:
          message: 'This image will also appear in the chapter menu.'
        inline:
          editor: 'Flowpack.StructuredEditing/EditorEnvelope'
          editorOptions:
            editor: 'Neos.Neos/Inspector/Editors/ImageEditor'
            icon: icon-picture
            maximumFileSize: null
            features:
              crop: true
              upload: true
              mediaBrowser: true
              resize: false
            crop:
              aspectRatio:
                options:
                  square:
                    width: 1
                    height: 1
                    label: Square
                  fourFive:
                    width: 4
                    height: 5
                  fiveSeven:
                    width: 5
                    height: 7
                  twoThree:
                    width: 2
                    height: 3
                  fourThree:
                    width: 4
                    height: 3
                  sixteenNine:
                    width: 16
                    height: 9
                enableOriginal: true
                allowCustom: true
                locked:
                  width: 0
                  height: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant