The new "Open Published Version" button as a way to view how the page would look Live is retaining Preview mode so any VTL code that includes something like "#if(!$PREVIEW_MODE)...." will prevent the block of code from showing up on the tab that gets opened. However, the Live tab we used to have does show what would be under the if statement.
Steps to Reproduce
The steps I took to reproduce were as follows.
Edit the header.vtl file of a theme that is being used
Added the #if(!$PREVIEW_MODE) then put a simple <h1>Test</h1> on the line under.
I then added #elseif($PREVIEW_MODE) with <h1>Preview Mode</h1> on the line under.
Acceptance Criteria
Have the Open Published Version act like the Live tab
dotCMS Version
24.04.24
24.06.17
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
Parent Issue
No response
Problem Statement
The new "Open Published Version" button as a way to view how the page would look Live is retaining Preview mode so any VTL code that includes something like "#if(!$PREVIEW_MODE)...." will prevent the block of code from showing up on the tab that gets opened. However, the Live tab we used to have does show what would be under the if statement.
Steps to Reproduce
The steps I took to reproduce were as follows.
<h1>Test</h1>
on the line under.<h1>Preview Mode</h1>
on the line under.Acceptance Criteria
Have the Open Published Version act like the Live tab
dotCMS Version
24.04.24 24.06.17
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response