web_view 

Changed in version 14.0 Feature: #107628 - Improved backend module naming and structure

The main module Web has been renamed to Content.

Configuration options of the Content > Preview module.

previewFrameWidths 

previewFrameWidths
Type
array

Configure available presets in view module.

<key>.label
Label for the preset
<key>.type
Category of the preset, must be one of 'desktop', 'tablet' or 'mobile'
<key>.width
Width of the preset
<key>.height
Height of the preset

Example: Define a new preview preset 

This configuration adds the preset 1024 with a size of 1024 x 768 pixels to the category desktop. Its label comes from the language file of the Preview module.

EXT:my_sitepackage/Configuration/page.tsconfig
mod.web_view.previewFrameWidths {
  1024.label = LLL:viewpage.messages:desktop
  1024.type = desktop
  1024.width = 1024
  1024.height = 768
}
Copied!
The module Content > Preview with its list of presets open. After the desktop presets 1280px/1024px, 1440px/1024px, and 1920px/1080px, the list shows the new preset "Desktop" with 1024px/768px.

The new preset in the list of presets of the Preview module

type 

type
Type
positive integer

Enter the value of the &type= parameter passed to the webpage.

Example: Show pages of type 42 in the preview 

EXT:my_sitepackage/Configuration/page.tsconfig
mod.web_view {
  # Frontend link will be something like index.php?id=123&type=42
  type = 42
}
Copied!