Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: SUPPORT-8050: infobox moved to under "Check for preview mode" ()

...

Checks whether the content is requested in the page editor in preview mode.

Info

cmsfn.isPreviewMode() returns True in public instance. To confirm this you can use

Code Block
[#if !cmsfn.isEditMode()]  or [#if cmsfn.isPreviewMode() && !cmsfn.isAuthorInstance()]

Method signature

boolean isPreviewMode()

...

Checks whether content is requested on the author /public instance.

...

.

...

Method signature

boolean isAuthorInstance()

...