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

DOC: Setting default values for preconfigured link fields

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • 6.2.9
    • None
    • UI FW 30
    • 2

    Description

      After MGNLUI-6375, you can set defaultValue for preconfigured link fields as follows:

      pageLinkField

      Set a path or UUID (like for the JCR link field).

      pageLinkPath:
        $type: pageLinkField
        defaultValue: /travel
      pageLinkUUID:
        $type: pageLinkField
        defaultValue: 53b073cc-ea3a-4e44-bdea-8c8a790b55c5

      damLinkField

      Set a UUID with a prefix.

      damLinkUUID:
        $type: damLinkField
        defaultValue: jcr:baa86f2d-b1c6-413e-9879-bc2b166f9f1d

      jsonLinkField

      Set a string value.

      jsonLink:
        $type: jsonLinkField
        defaultValue: Andorra
        chooser:
          workbenchChooser:
            datasource:
              $type: jsonDatasource
              restClient: countries
              restCall: allCountries
              jsonPathExpressions:
                itemId: '$.name'
                items: '$.*'
                describeBy: '$.name'
                properties:
                  name: '$.name'
            workbench:
              contentViews:
                - name: list
                  $type: listView
                  columns:
                    - name: name
                      label: Name

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                akhamis Ashraf Khamis
                akhamis Ashraf Khamis
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR