Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-572

pageLinkField not showing variants

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 6.2.16
    • None
    • None

    Description

      Steps to reproduce:

      1. Go to demo, open Pages app and create a new page (basic template)
      2. Create a Link component (pageLink) and check that you cannot select variants because they are not even shown

      Expected results

      The variants can be selected as target page for pageLink fields (as it happened in Magnolia 5)

      Actual results

      Variants are not shown because the hardcoded allowedType is mgnl:page

      Workaround

      Include datasource within the pageLinkField definition:

      - name: page
              $type: pageLinkField
              datasource:
                $type: jcrDatasource
                workspace: website
                rootPath: /
                allowedNodeTypes:
                  - mgnl:page
                  - mgnl:variants
      

      This way, the variant pages appear and can be selected.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ldelnevo Laura Delnevo
              ccantalapiedra Carlos Cantalapiedra
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD