f:link.external¶
A ViewHelper for creating links to external targets.
Tip
If you specify an absolute URL like http://
or ftp://
you don’t need to set defaultScheme
.
Properties¶
All the universal tag attributes
Exclusive properties for the HTML-Element¶
name¶
- Variable type
- String
- Description
- Specifies the name of an anchor.
- Default value
- NULL
- Mandatory
- No
rel¶
- Variable type
- String
- Description
- Specifies the relationship between the current document and the linked document.
- Default value
- NULL
- Mandatory
- No
rev¶
- Variable type
- String
- Description
- Specifies the relationship between the linked document and the current document.
- Default value
- NULL
- Mandatory
- No
target¶
- Variable type
- String
- Description
- Specifies where to open the linked document.
- Default value
- NULL
- Mandatory
- No
Exclusive properties of this ViewHelper¶
uri¶
- Variable type
- String
- Description
- The URI that will be put in the href attribute of the rendered link tag.
- Default value
- NULL
- Mandatory
- Yes
defaultScheme¶
- Variable type
- String
- Description
- Scheme the href attribute will be prefixed with if specified $uri does not contain a scheme already.
- Default value
- ‘http’
- Mandatory
- No
Examples¶
<f:link.external uri="http://www.typo3.org" target="_blank">external link</f:link.external>
Result:
<a href="http://www.typo3.org" target="_blank">external link</a>
Custom default scheme¶
<f:link.external uri="typo3.org" defaultScheme="ftp">external ftp link</f:link.external>
Result:
<a href="ftp://typo3.org">external ftp link</a>