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

DOC: cmsfn.isPreviewMode() has inaccurate javadoc

XMLWordPrintable

      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.

        Acceptance criteria

          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

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD