---
title: "web_view"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:pagewebview@main"
source: "PageTsconfig/Mod/WebView.rst"
rendered: "2026-09-19T06:55:14+00:00"
---

# web_view {#pagewebview}

<!-- TODO: no Markdown rendering for "versionchanged" -->

The main module Web has been renamed to Content.
See Feature: #107628 - Improved backend module naming and structure

Configuration options of the **Content > Preview** module.

-   [previewFrameWidths](https://docs.typo3.org/permalink/t3tsref:previewframewidths@main)
-   [type](https://docs.typo3.org/permalink/t3tsref:type@main)

## previewFrameWidths {#pagewebview-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 {#pagewebview-previewframewidths-example-define-new}

With this configuration a new preset '1014' with size 1024x768 will be configured with a label
loaded from an xlf file and the category 'desktop'.

**EXT:site_package/Configuration/page.tsconfig**

```typoscript
mod.web_view.previewFrameWidths {
  1024.label = LLL:viewpage.messages:computer
  1024.type = desktop
  1024.width = 1024
  1024.height = 768
}

```

![Dropdown menu Width with added frame size called myPreview](../../Images/ManualScreenshots/View/WebViewTSConfigPreview.png)

## type {#pagewebview-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 {#pagewebview-type-example-show-pages}

**EXT:site_package/Configuration/page.tsconfig**

```typoscript
mod.web_view {
  # Frontend link will be something like index.php?id=123&type=42
  type = 42
}

```
