---
title: "Feature: #88791 - Introduce PreviewAspect in Context"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-88791"
source: "Changelog/10.0/Feature-88791-IntroducePreviewAspectInContext.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #88791 - Introduce PreviewAspect in Context

See [forge#88791](https://forge.typo3.org/issues/88791)

## Description

A PreviewAspect for handling the preview flag has been introduced. This aspect may be used to indicate that the
frontend is in preview mode (for example in case a workspace is previewed or hidden pages or records should be shown).

## Impact

The Context API has a new Aspect called "frontend.preview". It can be used to determine whether the frontend is currently in preview mode.

```php
GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');
```

This Aspect replaces the now deprecated property `TypoScriptFrontendController->fePreview`. Accessing this property
triggers a PHP `E_USER_DEPRECATED` error, and fetches the information from the new Context Aspect instead.
