[PAGES-572] pageLinkField not showing variants Created: 09/Mar/22  Updated: 16/Aug/22  Resolved: 10/Aug/22

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2.16
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Laura Delnevo
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Captura de pantalla 2022-03-09 a las 16.52.12.png     PNG File Captura de pantalla 2022-03-09 a las 16.52.38.png    
Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: AuthorX Support
Sprint: AuthorX 6
Team: AuthorX

 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.


Generated at Mon Feb 12 06:20:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.