Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3746

Inbox page preview (with GET parameter mgnlVersion=) renders the page in wrong mode.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Neutral
    • None
    • 4.4.3
    • admininterface
    • None

    Description

      If page is rendered with the mgnlVersion= GET parameter, alls edit bars are hidden and the page looks like in preview mode. You reach this state by clicking "Show Content" in the inbox.

      The page looks like in preview mode (because all green bars are hidden), but all freemarker code inside of

       [#if mgnl.editMode]

      statements is executed all the same.

      This causes some rendering problems, and displays hints like in

      formGroupEdit.ftl, Line 10
      [#if mgnl.editMode]
              ${i18n['form.note.field']}
      [/#if]
      

      to be displayed, even though the user doesnt seem to be in the edit mode.

      It seems to me, that the aggregationState returns a wrong value here:
      info.magnolia.cms.core.AggregationState#isPreviewMode

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              sbaur Stefan Baur
              Raphael Joss
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD