dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
865 stars 467 forks source link

Open Published Version not acting like Live tab #28923

Open nathan-hildebrandt opened 5 months ago

nathan-hildebrandt commented 5 months ago

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.

  1. Edit the header.vtl file of a theme that is being used
  2. Added the #if(!$PREVIEW_MODE) then put a simple <h1>Test</h1> on the line under.
  3. 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.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.