• A TYPO3 Extbase and Fluid Guide
    latest
  • Sitemap
  • Extbase Guide
    • Introduction
      • What is Extbase?
      • Should I use Extbase?
      • How do I get started with Extbase?
      • Want to contribute?
    • Main Contents
      • Creating an Extbase extension
        • Your first extension - step by step
        • Install the Extension Builder
        • Information about your extension
        • Create the domain model
        • Activate the extension
        • Add the plugin to a page
        • Add a data record
      • Extending an Extbase extension
        • Showing categories in the detail view
        • Multiple usage of categories
      • Step 1 - Introduction
        • Introduction
        • Domain Driven Design
        • Dependency Injection
      • Step 2 - System check
        • TYPO3
        • PHP
      • Step 3 - Documentation
        • Architecture
          • System parts
        • Arguments
        • Bootstrap
        • Dispatcher
          • RequestHandler
          • RequestBuilder
          • RequestHashService
          • Response
          • The Dispatcher
        • The Controller
          • The ActionController
          • The path to the execution of an action
            • UriBuilder
            • The Action
            • initializeActionMethodArguments
            • initializeActionMethodValidators
            • initializeAction
            • initializeXXXAction
            • mapRequestArgumentsToControllerArguments
            • resolveView
            • callActionMethod
  • Fluid Guide
    • ViewHelpers
      • ViewHelpers for the TYPO3 backend
        • ViewHelper: Buttons
          • f:be.buttons.csh
            • Properties
              • Special case
            • Examples
              • Example: database fields
              • Example: Icons for form fields without a 1:1 database structure
          • f:be.buttons.shortcut
            • Properties
            • Example
        • ViewHelper: Menus
          • f:be.menus.actionMenu
            • Properties
            • Example
          • f:be.menus.actionMenuItem
            • Properties
            • Example
          • f:be.menus.actionMenuItemGroup
            • Properties
            • Example
        • ViewHelper: Security
          • f:be.security.ifAuthenticated
            • Properties
            • Examples
              • IF->THEN->ELSE
              • Status-dependent content
          • f:be.security.ifHasRole
            • Properties
            • Examples
              • IF->THEN->ELSE
              • Status-dependent content
        • ViewHelper: Widget
          • f:be.widget.paginate
            • Properties
            • Configuration of the page navigation
        • f:be.container
          • Properties
          • Examples
            • Simple
            • All options
        • f:be.InfoBox
          • Properties
          • Examples
            • Simple
            • All options
        • f:be.pageInfo
          • Properties
          • Example
        • f:be.pagePath
          • Properties
          • Example
        • f:be.pageRenderer
          • Properties
          • Examples
            • All options
        • f:be.tableList
          • Properties
          • Minimal example
          • Example: maximum number of records
          • Example: show records directly
      • ViewHelper: Debug
        • Properties
          • title
          • maxDepth
          • plainText
          • ansiColors
          • inline
          • blacklistedClassNames
          • blacklistedPropertyNames
      • ViewHelper: Form
        • Properties
          • f:form.abstractForm
          • f:form.abstractFormField
            • Properties
              • name
              • value
              • property
          • f:form.button
            • Properties
              • Exclusive properties for the HTML-Element
                • type
            • Examples
          • f:form.checkbox
            • Properties
              • Exclusive properties for the HTML-Element
                • disabled
              • Exclusive properties of this ViewHelper
                • checked
                • multiple
            • Workaround for an invalid Form object
            • Example without a property
            • Example with a property
            • Example of grouped checkboxes
          • f:form.hidden
            • Properties
            • Examples
          • f:form.password
            • Properties
            • Examples
          • f:form.radio
            • Properties
              • Exclusive properties for the HTML-Element
                • checked
            • Examples
          • f:form.select
            • Properties
              • Exclusive properties for the HTML-Element
                • multiple
                • size
                • disabled
              • Exclusive properties of this ViewHelper
                • options
                • optionsAfterContent
                • optionValueField
                • optionLabelField
                • sortByOptionLabel
                • selectAllByDefault
                • errorClass
                • prependOptionLabel
                • prependOptionValue
            • Examples
          • ViewHelper: Form/Select
            • Properties
          • f:form.submit
            • Properties
              • disabled
            • Example
          • f:form.textarea
            • Properties
              • autofocus
              • rows
              • cols
              • disabled
              • placeholder
              • errorClass
            • Examples
          • f:form.textfield
            • Properties
              • Exclusive properties of this ViewHelper
                • autofocus
                • disabled
                • maxlength
                • readonly
                • size
                • placeholder
                • pattern
                • errorClass
                • required
                • type
            • Examples
          • f:form.validationResults
            • Properties
              • for
              • as
          • Examples
      • ViewHelper: Format
        • f:format.bytes
          • Properties
            • value
            • decimals
            • decimalSeparator
            • thousandsSeparator
            • units
          • Examples
        • f:format.case
          • Properties
            • value
            • mode
          • Examples
        • f:format.crop
          • maxCharacters
          • append
          • respectWordBoundaries
          • respectHtml
          • Examples
            • Crop
            • Splitting a word
            • Don't respect HTML tags
        • f:format.currency
          • Properties
            • currencySign
            • decimalSeparator
            • thousandsSeparator
            • prependCurrency
            • separateCurrency
            • decimals
          • Examples
            • Non-float value
        • f:format.date
          • Properties
            • date
            • format
            • base
          • Examples
            • Day Month Year
            • Now
            • Format Unix timestamps
            • Format and base defaults
            • Hours:minutes
            • A year before base time
            • A more complex textual relative time
            • Localized time using strftime syntax
            • Inline notation
            • More inline notation
        • f:format.html
          • Properties
            • parseFuncTSPath
          • Example
          • Example with an alternative TypoScript object path
        • f:format.htmlentities
          • Properties
            • value
            • keepQuotes
            • encoding
            • doubleEncode
          • Beispiel
        • f:format.htmlentitiesDecode
          • Properties
            • value
            • keepQuotes
            • encoding
          • Example
        • f:format.json
          • Properties
            • value
            • forceObject
          • Examples
        • f:format.nl2br
          • Properties
            • value
          • Example
        • f:format.number
          • Properties
            • decimals
            • decimalSeparator
            • thousandsSeparator
          • Examples
        • f:format.padding
          • Properties
            • value
            • padLength
            • padString
            • padType
          • Examples
        • f:format.stripTags
          • Properties
            • value
            • allowedTags
          • Examples
        • f:format.urlencode
          • Properties
            • value
          • Examples
      • ViewHelper: Link
        • f:link.action
          • Properties
            • Exclusive properties for the HTML-Element
              • name
              • rel
              • rev
              • target
            • Exclusive properties of this ViewHelper
              • action
              • arguments
              • controller
              • extensionName
              • pluginName
              • pageUid
              • pageType
              • noCache
              • noCacheHash
              • section
              • format
              • linkAccessRestrictedPages
              • additionalParams
              • absolute
              • addQueryString
              • argumentsToBeExcludedFromQueryString
              • addQueryStringMethod
          • Examples
        • f:link.email
          • Properties
            • Exclusive properties for the HTML-Element
              • name
              • rel
              • rev
              • target
            • Exclusive properties of this ViewHelper
              • email
          • Examples
        • f:link.external
          • Properties
            • Exclusive properties for the HTML-Element
              • name
              • rel
              • rev
              • target
            • Exclusive properties of this ViewHelper
              • uri
              • defaultScheme
          • Examples
        • f:link.page
          • Properties
            • Exclusive properties for the HTML-Element
              • target
              • rel
            • Exclusive properties of this ViewHelper
              • pageUid
              • additionalParams
              • pageType
              • noCache
              • noCacheHash
              • section
              • linkAccessRestrictedPages
              • absolute
              • addQueryString
              • argumentsToBeExcludedFromQueryString
              • addQueryStringMethod
          • Examples
        • f:link.typolink
          • Properties
            • parameter
            • target
            • class
            • title
            • additionalParams
            • additionalAttributes
            • useCacheHash
          • Example
      • ViewHelper: Security
        • f:security.ifAuthenticated
          • Example
        • f:security.ifHasRole
          • Properties
            • role
          • Examples
      • ViewHelper: Uri
        • f:uri.action
          • Properties
            • action
            • arguments
            • controller
            • extensionName
            • pluginName
            • pageUid
            • pageType
            • noCache
            • noCacheHash
            • section
            • format
            • linkAccessRestrictedPages
            • additionalParams
            • absolute
            • addQueryString
            • argumentsToBeExcludedFromQueryString
          • Example
        • f:uri.email
          • Properties
            • email
          • Examples
        • f:uri.external
          • Properties
            • uri
            • defaultScheme
          • Example
        • f:uri.image
          • Properties
            • src
            • image
            • width
            • height
            • crop
            • cropVariant
            • minWidth
            • minHeight
            • maxWidth
            • maxHeight
            • treatIdAsReference
        • f:uri.page
          • Example
          • Properties
            • pageUid
            • additionalParams
            • pageType
            • noCache
            • noCacheHash
            • section
            • linkAccessRestrictedPages
            • absolute
            • addQueryString
            • argumentsToBeExcludedFromQueryString
        • f:uri.resource
          • Properties
            • path
            • extensionName
            • absolute
        • f:uri.typolink
          • Usage
          • Parameters
          • Examples
            • Example 1
            • Example 2
      • ViewHelper: Widgets
        • f:widget.autocomplete
        • f:widget.link
          • Properties
        • f:widget.paginate
          • Properties
            • objects
            • as
            • configuration
          • Examples
            • Pagination of a blog with required arguments
            • Pagination of a blog with custom configuration
        • f:widget.uri
      • f:alias
        • Details
          • map
        • Examples for static values
        • Example for results from another ViewHelper
        • Example for values from an object
      • f:base
        • Properties
        • Example
      • f:case
        • Properties
          • value
        • Example
        • Deprecation
      • f:cObject
        • Properties
          • typoscriptObjectPath
          • data
          • currentValueKey
        • Simple example
        • Example for a localized date value
        • Example with an array or object
      • f:comment
        • Properties
        • Example
      • f:count
        • Properties
          • subject
        • Example: array as renderChildren
        • Example: array by subject
        • Example: inline notation
        • Example: better inline notation
      • f:cycle
        • Properties
          • values
          • as
        • Beispiel
      • f:debug
        • Properties
          • title
          • maxDepth
          • plainText
          • ansiColors
          • inline
          • blacklistedClassNames
          • blacklistedPropertyNames
        • Examples
      • f:else
        • Properties
      • f:escape
      • f:flashMessages
        • Usage
        • Parameters
        • Examples
          • Example: Standard Usage
          • Example: Self Rendered Template
      • f:for
        • Usage
        • Parameters
        • Examples
          • Example: Exhaustive usage
          • Example: Minimum usage
          • Example: Iterator usage
      • f:form
        • Properties
          • Global properties of this ViewHelper
            • enctype
            • method
            • name
            • onreset
            • onsubmit
          • Exclusive properties of this ViewHelper
            • action
            • arguments
            • controller
            • extensionName
            • pluginName
            • pageUid
            • object
            • pageType
            • noCache
            • noCacheHash
            • section
            • format
            • additionalParams
            • absolute
            • addQueryString
            • argumentsToBeExcludedFromQueryString
            • fieldNamePrefix
            • actionUri
            • objectName
        • Example
      • f:groupedFor
        • Properties
          • each
          • as
          • groupBy
          • groupKey
        • Example
      • f:if
        • Properties
          • condition
        • Complex conditional statements
        • Simple examples
      • f:image
        • Properties
        • Inline usage example
          • Exclusive properties of the HTML tag
          • alt
          • ismap
          • longdesc
          • usemap
            • Exclusive properties of this ViewHelper
          • absolute
          • accesskey
          • additionalAttributes
          • alt
          • class
          • crop
          • cropVariant
          • data
          • dir
          • height
          • id
          • image
          • ismap
          • lang
          • longdesc
          • maxHeight
          • maxWidth
          • minHeight
          • minWidth
          • onclick
          • src
          • style
          • tabindex
          • title
          • treatIdAsReference
          • usemap
          • width
        • Examples
          • Output the image in its original resolution
          • Output a smaller image
          • Re-size and crop an image
      • f:layout
        • Properties
          • Exclusive properties of this ViewHelper
            • name
      • f:render
        • Properties
          • section
          • partial
          • arguments
          • optional
        • Example of a Partial
      • f:renderChildren
      • f:renderFlashMessages
      • f:section
        • Properties
          • name
        • Example
      • f:switch
        • Properties
          • expression
        • Example
      • f:then
        • Properties
      • f:translate
        • Properties
          • key
          • default
          • htmlEscape
          • arguments
        • Examples
          • Basic
          • With full file path
          • With placeholders
    • Global properties of the HTML element
      • class
      • dir
      • id
      • lang
      • style
      • title
      • accesskey
      • tabindex
      • onclick
      • data
    • Universal Form Field Attributes
      • name
      • value
      • property
    • Things worth knowing
      • Array notation
        • Allow Fluid arrays only in ViewHelper arguments
      • JavaScript and Fluid Inline Syntax
        • Problem
        • Solutions
    • Best practices
      • Static options for f:form.select
  • Linktargets
 
A TYPO3 Extbase and Fluid Guide
  • Docs »
  • Fluid Guide »
  • ViewHelpers »
  • ViewHelper: Link »
  • f:link.action
  • Edit me on GitHub

f:link.action¶

A view helper for creating links to extbase actions.

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¶

action¶

Variable type
String
Description
Target action.
Default value
NULL
Mandatory
No

arguments¶

Variable type
Array
Description
Arguments to be added to the link.
Default value
Empty Array
Mandatory
No

controller¶

Variable type
String
Description
Target controller. If NULL current controllerName is used.
Default value
NULL
Mandatory
No

extensionName¶

Variable type
String
Description
Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used.
Default value
NULL
Mandatory
No

pluginName¶

Variable type
String
Description
Target plugin. If empty, the current plugin name is used.
Default value
NULL
Mandatory
No

pageUid¶

Variable type
Integer
Description
Target page. See TypoLink destination.
Default value
NULL
Mandatory
No

pageType¶

Variable type
Integer
Description
Type of the target page. See typolink.parameter.
Default value
0
Mandatory
No

noCache¶

Variable type
Boolean
Description
Set this to disable caching for the target page. You should not need this.
Default value
FALSE
Mandatory
No

noCacheHash¶

Variable type
Boolean
Description
Set this to suppress the cHash query parameter created by TypoLink. You should not need this.
Default value
FALSE
Mandatory
No

section¶

Variable type
String
Description
The anchor to be added to the URI.
Default value
Empty String
Mandatory
No

format¶

Variable type
String
Description
The requested format, e.g. ".html.
Default value
Empty String
Mandatory
No

linkAccessRestrictedPages¶

Variable type
Boolean
Description
If set, links pointing to access restricted pages will still link to the page even though the page cannot be accessed.
Default value
FALSE
Mandatory
No

additionalParams¶

Variable type
Array
Description
Additional query parameters that won't be prefixed like $arguments (overrule $arguments).
Default value
Empty Array
Mandatory
No

absolute¶

Variable type
Boolean
Description
If set, the URI of the rendered link is absolute.
Default value
FALSE
Mandatory
No

addQueryString¶

Variable type
Boolean
Description
If set, the current query parameters will be kept in the URI.
Default value
FALSE
Mandatory
No

argumentsToBeExcludedFromQueryString¶

Variable type
Array
Description
Arguments to be removed from the URI. Only active if $addQueryString = TRUE.
Default value
Empty Array
Mandatory
No

addQueryStringMethod¶

Variable type
String
Description
Set which parameters will be kept. Only active if $addQueryString = TRUE.
Default value
NULL
Mandatory
No

Examples¶

Link to the show-action of the current controller

<f:link.action action="show">action link</f:link.action>

<a href="index.php?id=123&tx_myextension_plugin[action]=show&tx_myextension_plugin[controller]=Standard&cHash=xyz">action link</f:link.action>
(depending on the current page and your TS configuration)
Next Previous

View page source

© Copyright by the authors since ever

Last rendered on Mar 10, 2018 20:13

Built with Sphinx and t3SphinxThemeRtd. Report theme issues here.

Legal Info

Versions
Project
Home
Discussions
Issues
Repository
Downloads
Related Links v: latest