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
Type:typo3-cms-extension
Requires
- php: ~8.2
- typo3/cms-backend: ^13.1
- typo3/cms-core: ^13.1
- typo3/cms-fluid: ^13.1
- typo3/cms-frontend: ^13.1
Requires (Dev)
- ext-zip: *
- bnf/phpstan-psr-container: ^1.0.1
- friendsofphp/php-cs-fixer: ^3.22
- friendsoftypo3/phpstan-typo3: ^0.9.0
- phpstan/phpstan: ^1.10.22
- phpstan/phpstan-phpunit: ^1.3.13
- typo3/coding-standards: ^0.8
- typo3/tailor: ^1.6
- typo3/testing-framework: ^8.2
README
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).