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
-
- 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
}
The new preset in the list of presets of the Preview module
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