kitzberger/doktype-typolink

Enhance doktype 3 ("Link to External URL") to support typolinks

Installs: 615

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

3.0.0 2023-11-12 09:36 UTC

This package is auto-updated.

Last update: 2024-04-12 10:36:38 UTC


README

Enhances doktype 3 ("Link to External URL") to support typolinks. So there's no need for hard coded absolute URLs in menus anymore.

It's a tiny change in TCA but enables to BE users to use the power of the typolink link browser.

Before After
Before After

Resolving the typolink

Frontend rendering

Since 7.6 when rendering typolinks (and menus) during the FE rendering process the URLs of pages of doktype 3 are being automatically replaced by their (external) URL target.

This core mechanism also resolves any typolink that might by used as url property.

Accessing the page URL

When accessing the page's URL directly (e.g. via save+show button in BE) the 303 redirect is still in place though.

To resolve any typolink within the url property in this case there's an experimental middleware that can be activated in the extension settings.