Uri.external ViewHelper <f:uri.external>
ViewHelper for creating URIs to external targets, enforcing a specific scheme (https by default). The specified URI is passed through without further resolving or transformation.
Go to the source code of this ViewHelper: Uri\ExternalViewHelper.php (GitHub).
Table of contents
Examples
Default
packages/my_extension/Resources/Private/Templates/Blog/Show.fluid.html
<f:uri.external uri="https://www.typo3.org" />
Copied!
Output
https://www.typo3.org
Copied!
Custom default scheme
packages/my_extension/Resources/Private/Templates/Blog/Show.fluid.html
<f:uri.external uri="typo3.org" defaultScheme="ftp" />
Copied!
Output
ftp://typo3.org
Copied!
Arguments of the <f:uri.external> ViewHelper
defaultScheme
-
- Type
- string
- Default
- 'https'
scheme the href attribute will be prefixed with if specified $uri does not contain a scheme already
uri
-
- Type
- string
- Required
- 1
target URI