Add 'in_preview' variable to block and layout templates

Created on 4 April 2022, over 2 years ago
Updated 20 June 2024, 3 months ago

Problem/Motivation

Per #3027653-51: Allow block and layout plugins to determine if they are being previewed β†’ , block and layout templates should be provided with a variable, "in_preview", to inform the templates whether they're being rendered in preview mode (TRUE) or regularly (FALSE).

Proposed resolution

Modify template_preprocess_HOOK in where necessary to add the "in_preview" template variable.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

9.5

Component
Layout builderΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States clayfreeman Paragould, AR

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024