What variable indicates a page is served in PageBuilder Preview mode
Question
How can ads and other content that should not be served in Preview Admin mode, be prevented from rendering. What variable is available to test if a page is being served in PageBuilder Preview?
Answer
The Fusion object contains the variable isAdmin
which will be true
when served from PageBuilder Preview and can be used to disable ads and other content which should not be rendered in preview.