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

Clarify the semantics of the viewType property of OpenDetailSubappActionDefinition

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 6.2
    • None
    • framework
    • None

      i.m.ui.contentapp.action.OpenDetailSubappActionDefinition#viewType is an opaque string. It's semantics and default value is not evident.

      According to i.m.ui.contentapp.ResolveJcrNodeFromLocationContext#resolveNode permissible values are add, edit, view, version and the empty string. The latter is the default and results in the fields in the detail subApp not being populated.

      As discussed on Slack this area might undergo further changes in the future. In the meanwhile I suggest to add a doc comment for the current behaviour and change the default value to view.

        Acceptance criteria

              mduerig Michael Duerig
              mduerig Michael Duerig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD