Skip to content
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

FEATURE: Change order of fields in creation dialog (showInCreationDialog) #3709

Open
1 task done
dkoether opened this issue Feb 2, 2024 · 2 comments
Open
1 task done
Labels
Feature Label to mark the change as feature

Comments

@dkoether
Copy link

dkoether commented Feb 2, 2024

Is there an existing issue for this topic?

  • I have searched the existing issues

Description

Properties can have the same label like Title (e.g. page title, Google Scholar title, meta tag title and Twitter Card title). The editor can differentiate these fields with same name because of their groups in the UI. In the creation dialog we dont have these groups and the editors do not know what kind of title they are filling. So I have to add a suffix like Title (Google Scholar) or Title (Page).

When I overwrite the label with XYZ.Site:Mixin.Article.A.ui.creationDialog.propertyA.ui.label: 'XYZ.Site:Mixin.Article.A.Labels:properties.propertyA.creationDialog' I can add this suffix but now the field is moved to the top of the creation dialog. The properties of XYZ.Site:Mixin.Article.B are less important and I dont want them on top but still in the creation dialog.

Example

This is my document nodeType:

XYZ.Site:Document.Abstract.Article:
  superTypes:
    XYZ.Site:Mixin.Article.A: true
    XYZ.Site:Mixin.Article.B: true
   [...]

Mixins:

XYZ.Site:Mixin.Article.A:
  properties:
    propertyA1:
      [...]
    propertyA2:
      [...]
    propertyA3:
      [...]
XYZ.Site:Mixin.Article.B:
  ui:
    creationDialog:
      elements:
        propertyB1:
          ui:
            label: 'property B1 (label for creation dialog)'
        propertyB2:
          ui:
            label: 'property B2 (label for creation dialog)'
        propertyB3:
          ui:
            label: 'property B3 (label for creation dialog)'
  properties:
    propertyB1:
      [...]
    propertyB2:
      [...]
    propertyB3:
      [...]

Result:
grafik

To rearrange the fields again I need to define labels also for the properties of XYZ.Site:Mixin.Article.A:

XYZ.Site:Mixin.Article.A:
  ui:
    creationDialog:
      elements:
        propertyA1:
          ui:
            label: 'propertyA1'
        propertyA2:
          ui:
            label: 'propertyA2'
        propertyA3:
          ui:
            label: 'propertyA3'
[...]

Possible Solution

Dont move fields in the creation dialog when defining creationDialog.elements only for a few of them.

@dkoether dkoether added the Feature Label to mark the change as feature label Feb 2, 2024
@crydotsnake crydotsnake transferred this issue from neos/neos-development-collection Feb 3, 2024
@crydotsnake
Copy link
Member

crydotsnake commented Feb 3, 2024

Hello @dkoether

Can you give an example how to reproduce this?

@dkoether
Copy link
Author

dkoether commented Feb 9, 2024

Hello @crydotsnake,

I've updated the issue description with more details and an example. 👍🏻

Thanks for moving the issue to the right repository!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Label to mark the change as feature
Projects
None yet
Development

No branches or pull requests

2 participants