f7media/preview

Generate URLs to preview hidden pages without a backend login

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.0.3 2024-10-15 14:57 UTC

This package is auto-updated.

Last update: 2024-11-29 10:17:50 UTC


README

TYPO3 compatibility pipeline status

preview is an extension for TYPO3. It adds the functionality to preview disabled pages through generated preview URLs without the need for a backend login.

Requirements

  • TYPO3 13.1

Installation and Setup

Install the extension via your preferred way. The extension will add one database table to the database. No further setup is required. The extension works out of the box.

What is does

The extensions shows a container above the page content in the page module on every page that is currently hidden for any reason (time constraint or simply deactivated). For every page (in every language) a unique access URL can be generated and provided to external partners, which may then access the hidden page without a backend login.

Every preview URL has its own lifetime (configurable in extension settings). If this lifetime is over, the preview URL will be automatically removed from the system and is no longer valid.

For any other website visitor the disabled pages are still not accessible.

How it works

For every page and its language a secret token is stored in the database while a preview link is generated. While accessing the unpublished page, a PSR-15 middleware determines, if the secret token is provided and grants access, if so. If no access token is provided, the middleware do nothing and let TYPO3 proceed (which leads to a 404 http error, as the requested page is not available).