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

cmsfn.isEditMode() is true when accessing a page outside page editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.0.3, 5.1
    • 5.0.2
    • rendering, templating
    • None

      MGNLUI-1902 fix bug when cmsfn.isPreviewMode() was always false. But the fix covers only the case when being in page editor.
      MgnlContext.getAggregationState().isPreviewMode() is still false for accessing the page without editor (http://demoauthor.magnolia-cms.com/demo-project.html)
      This should be true or we need something to check that we are not in edit mode
      If not, pages in preview/direct access can be different, for example empty optional areas won't be rendered in page editor preview or on public, but will be rendered with direct page access on author (http://demoauthor.magnolia-cms.com/demo-project.html).

        Acceptance criteria

              fgrilli Federico Grilli
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: