Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6591

Hide tabs without fields

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 6.2.17
    • 6.2.6
    • None
    • None
    • Yes
    • Nucleus 3
    • 2

    Description

      I have dialog A (homepageNewSyntax.yaml)

      label: Seiteneigenschaften
      form:
        properties:
          - name: name
            $type: textField
            i18n: true
            label: Seitenname
      layout:
        $type: tabbedLayout
        tabs:
          general:
            label: Allgemein
            fields:
              - name: name
      
      • dialog B includes A at the very top of the YAML file with !include:/bn-main/dialogs/pages/homepageNewSyntax.yaml
      • In dialog B I want to hide a tab that is inherited from dialog A by doing this:
      !include:/bn-main/dialogs/pages/homepageNewSyntax.yaml
      
      form:
        layout:
          tabs:
            general:
              fields: !override
      

      or even this:

      !include:/bn-main/dialogs/pages/homepageNewSyntax.yaml
      
      form:
        layout:
          tabs:
            general: !override
      
      • But it doesnt work

      Actual
      If I !override at tab level, I get an empty tab with a generated tab label like this:

      If I !override at field level I get an empty tab with correct tab label:

      Expected
      No tab is displayed because it has no fields (like in 5.7)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                thien.quach Quach Hao Thien
                rgange Richard Gange
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1d 3h
                      1d 3h