Improve the preview option view for the full content view mode when a media header is present

Created on 8 July 2023, over 1 year ago
Updated 10 September 2023, over 1 year ago

Problem/Motivation

The Varbase media header doesn't reflect on the preview

Steps to reproduce

  1. Create a node that has Varbase media header
  2. Choose media header
  3. Preview the node

Proposed resolution

adding the following code when ever getParameter('node') is used

 if (empty($node)){
      $node = $this->routeMatch->getParameter('node_preview');
}

Remaining tasks

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

Tested in Varbase ~9.0.0

Test Basic page preview of the Full Content view mode - with Media Header

Test Basic page preview of the Teaser/Card view mode - with Media Header

Test Basic page - front-end view for the full content view mode - with Media Header

Test not saved yet new Basic page preview of the Full Content view - with Media Header

Test not saved yet new Basic page preview of the Teaser/Card view mode - with Media Header

Tested in Varbase ~10.0.0

Test Basic page preview of the Full Content view mode - with Media Header

Test Basic page preview of the Teaser/Card view mode - with Media Header

Test Basic page - front-end view for the full content view mode - with Media Header

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan Ahmad Khader

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024