Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-617

DOC: Not full info about variants=all in p13n of Headless SPA

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None
    • DevX 3
    • 2

    Description

      For https://docs.magnolia-cms.com/product-docs/6.2/Developing/SPA-development-and-Magnolia/Personalization-of-headless-SPA-projects.html

      ```
      For the edit mode, make sure you include variants=all on the query params.
      ```
      This is not full info.
      Adding the variants only in edit mode,
      having some not default variant chosen,
      clicking on the preview page would render the empty component.

      What we need is:
      Edit page
      iframe src: mgnl-author.com/foobar.html?mgnlPreview=false&mgnlChannel=desktop
      YES, we need variants=all

      Preview page
      iframe src: mgnl-author.com/foobar.html?mgnlPreview=true&mgnlChannel=desktop
      YES, we need variants=all

      Preview as visitor
      iframe src: mgnl-author.com/foobar.html?mgnlPreviewAsVisitor=true
      NO, we DO NOT need variants=all

      So we need to have variants=all when iframe src has mgnlPreview query parameter present.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin DrĂ¡pela
              bstaryga Bartosz Staryga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD