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

DOC: cmsfn.isPreviewMode() has inaccurate javadoc

    XMLWordPrintable

Details

    Description

      The javadoc of cmsfn.isPreviewMode() templating function is inaccurate.

      Returns whether the request is from the Page editor preview mode.

      It matches requests from both (Author and Public) instances.

      ----------

      In the "isEditMode" would be better to mention that it is only on the Author instance.

      Returns whether the request is from the Page editor edit mode.
      Specifically whether the request is on the author instance and not from the page editor in preview mode.
      Useful for providing messages in the page to assist the editors.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            1.
            Implementation Sub-task Completed Jaroslav Simak
            2.
            Review Sub-task Completed Marek Strucka
            3.
            piQA Sub-task Completed Marek Strucka
            4.
            QA Sub-task Completed Unassigned

            Activity

              People

                jsimak Jaroslav Simak
                evystup Ervin Vystup
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD