TYPO3 Logo
A TYPO3 Extbase and Fluid Guide
Release: 8.7

Loading data.

  • ViewHelpers
    • ViewHelpers for the TYPO3 backend
      • ViewHelper: Buttons
        • f:be.buttons.csh
        • f:be.buttons.shortcut
      • ViewHelper: Menus
        • f:be.menus.actionMenu
        • f:be.menus.actionMenuItem
        • f:be.menus.actionMenuItemGroup
      • ViewHelper: Security
        • f:be.security.ifAuthenticated
        • f:be.security.ifHasRole
      • ViewHelper: Widget
        • f:be.widget.paginate
      • f:be.container
      • f:be.infobox
      • f:be.pageInfo
      • f:be.pagePath
      • f:be.pageRenderer
      • f:be.tableList
    • ViewHelper: Debug
    • ViewHelper: Form
      • f:form.abstractForm
      • f:form.abstractFormField
      • f:form.button
      • f:form.checkbox
      • f:form.hidden
      • f:form.password
      • f:form.radio
      • f:form.select
      • ViewHelper: Form/Select
      • f:form.submit
      • f:form.textarea
      • f:form.textfield
      • f:form.validationResults
      • Examples
    • ViewHelper: Format
      • f:format.bytes
      • f:format.case
      • f:format.crop
      • f:format.currency
      • f:format.date
      • f:format.html
      • f:format.htmlentities
      • f:format.htmlentitiesDecode
      • f:format.json
      • f:format.nl2br
      • f:format.number
      • f:format.padding
      • f:format.stripTags
      • f:format.urlencode
    • ViewHelper: Link
      • f:link.action
      • f:link.email
      • f:link.external
      • f:link.page
      • f:link.typolink
    • ViewHelper: Security
      • f:security.ifAuthenticated
      • f:security.ifHasRole
    • ViewHelper: Uri
      • f:uri.action
      • f:uri.email
      • f:uri.external
      • f:uri.image
      • f:uri.page
      • f:uri.resource
      • f:uri.typolink
    • ViewHelper: Widgets
      • f:widget.autocomplete
      • f:widget.link
      • f:widget.paginate
      • f:widget.uri
    • f:alias
    • f:base
    • f:case
    • f:cObject
    • f:comment
    • f:count
    • f:cycle
    • f:debug
    • f:else
    • f:escape
    • f:flashMessages
    • f:for
    • f:form
    • f:groupedFor
    • f:if
    • f:image
    • f:layout
    • f:or
    • f:render
    • f:renderChildren
    • f:renderFlashMessages
    • f:section
    • f:spaceless
    • f:switch
    • f:then
    • f:translate
    • f:variable

PAGE CONTENTS

  • f:link.external
    • Properties
      • Exclusive properties for the HTML-Element
        • name
        • rel
        • rev
        • target
      • Exclusive properties of this ViewHelper
        • uri
        • defaultScheme
    • Examples
      • Custom default scheme
  1. Start
  2. ViewHelpers
  3. ViewHelper: Link
  4. f:link.external
Edit on GitHub View source

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>
  • Previous
  • Next
  • Home
  • Discussions
  • Issues
  • Repository

Last updated: May 18, 2018 17:21

Last rendered: Jan 22, 2021 09:09

TYPO3 Theme 4.4.3

© Copyright by the authors since ever
  • Legal Notice
  • Privacy Policy