TYPO3 Documentation
TYPO3 Content Blocks
Options
Give feedback View source How to edit Edit on GitHub Full documentation (single file)

TYPO3 Content Blocks

  • Introduction
  • Installation
  • Definition
    • config.yaml
    • assets
    • templates
    • language
  • Registration
  • Commands
    • Kickstart Command
    • List Command
    • Language Generate Command
    • Generate Frontend Template Command
    • Generate Backend Preview Template Command
    • Publish Assets Command
    • Lint Command
  • YAML reference
    • Common root options
    • ContentElements
    • PageTypes
    • RecordTypes
    • FileTypes
    • Field Types
      • Basic
      • Category
      • Checkbox
      • Collection
      • Color
      • Country
      • DateTime
      • Email
      • File
      • FlexForm
        • Sheet
        • Section
      • Folder
      • Json
      • Language
      • Linebreak
      • Link
      • Number
      • Palette
      • Pass
      • Password
      • Radio
      • Relation
      • Select
      • SelectNumber
      • SelectText
      • Slug
      • Tab
      • Text
      • Textarea
      • Uuid
  • Templating
  • API
    • Language Key Convention
    • Backend Preview
    • Basics (Mixins)
    • Content Elements
    • Elements Ordering
    • File Types
    • Nested Content Elements
    • Page Types
    • Field Prefixing
    • Record Types
    • Reuse Existing Fields
    • Site Sets
    • Type Overrides
  • Guides
    • Adding new groups
    • Integration with EXT:container
    • Create Extbase Plugins
    • Extend TCA
    • Extend TypoScript
    • Fluid Styled Content Layouts
    • Installation without Fluid Styled Content
    • Page Types frontend template
    • Shared Partials
  • Developer corner
    • Data Processing
    • Extending Field Types
  • Json Schema
  • Changelog
    • 1.0
    • 1.1
    • 1.2
    • 1.3
    • 2.0
    • 2.1
    • 2.2
    • 2.3
    • 2.4
  • Migrations
    • Content Blocks for v12
    • Mask
  • FAQ
  • Known Problems
  • Appendix
    • Core Content Types
    • TCA type mapping
    • History
  • Sitemap

Options

Give feedback View source How to edit Edit on GitHub Full documentation (single file)
  1. TYPO3 Content Blocks
  2. YAML reference
  3. Field Types
  4. Link
Give feedback Edit on GitHub

Link 

The Link type creates a field with a link wizard. It is possible to link to pages, files or even records (if configured). This field is resolved to an object of type \TYPO3\CMS\Core\LinkHandling\TypolinkParameter .

Settings 

Name Type Default Required
default
string ''
required
boolean false
searchable
boolean true
nullable
boolean false
allowedTypes
array '[*]'
appearance.allowedOptions
array
appearance.allowedFileExtensions
array
appearance.browserTitle
string
appearance.enableBrowser
boolean true
autocomplete
boolean
behaviour.allowLanguageSynchronization
boolean false
fieldControl
object
fieldInformation
object
fieldWizard
object
mode
string
placeholder
string
readOnly
boolean false
size
integer 30
valuePicker
object

default

default
Type
string
Default
''

Default value set if a new record is created.

required

required
Type
boolean
Default
false

If set, the field becomes mandatory.

searchable

searchable
Type
boolean
Default
true

If set to false, the field will not be considered in backend search.

nullable

nullable
Type
boolean
Default
false

If set, the field value will resolve to null if no link is provided. Useful, if field is optional.

allowedTypes

allowedTypes
Type
array
Default
'[*]'

Allow list of link types. Possible values are page, url, file, folder, email, telephone and record.

appearance.allowedOptions

appearance.allowedOptions
Type
array

Controls which options are displayed in the link browser. Omit to allow all options. Set to an empty array [] to deny all. Possible values: class, params, target, title, rel, body, cc, bcc, subject.

appearance.allowedFileExtensions

appearance.allowedFileExtensions
Type
array

List of file extensions shown in the file browser. If empty, all extensions are allowed.

appearance.browserTitle

appearance.browserTitle
Type
string

Custom title attribute for the link browser icon. Defaults to Link.

appearance.enableBrowser

appearance.enableBrowser
Type
boolean
Default
true

Set to false to disable the link browser icon.

autocomplete

autocomplete
Type
boolean

Enables or disables browser autocomplete for the field.

behaviour.allowLanguageSynchronization

behaviour.allowLanguageSynchronization
Type
boolean
Default
false

Allows to select if localization uses custom or default language value.

fieldControl

fieldControl
Type
object

See TCA fieldControl.

fieldInformation

fieldInformation
Type
object

See TCA fieldInformation.

fieldWizard

fieldWizard
Type
object

See TCA fieldWizard.

mode

mode
Type
string

When set to useOrOverridePlaceholder, a checkbox appears above the field allowing the user to override the placeholder value.

placeholder

placeholder
Type
string

Placeholder text displayed inside the field when it is empty.

readOnly

readOnly
Type
boolean
Default
false

Renders the field in a way that the user can see the value but cannot edit it.

size

size
Type
integer
Default
30

Abstract width of the input field. Minimum 10, maximum 50.

valuePicker

valuePicker
Type
object

Renders a select box next to the field from which predefined values can be inserted. Requires an items array of objects with label and value keys.

Example:

valuePicker:
  items:
    - label: 'TYPO3 CMS'
      value: 'https://www.typo3.org'
    - label: 'TYPO3 GmbH'
      value: 'https://www.typo3.com'
Copied!

Example 

Minimal 

name: example/link
fields:
  - identifier: url
    type: Link
Copied!

Advanced / use case 

name: example/link
fields:
  - identifier: url
    type: Link
    autocomplete: true
    default: 'https://typo3.org'
    allowedTypes:
      - page
      - url
      - file
    required: true
    valuePicker:
      items:
        - label: 'TYPO3 CMS'
          value: 'https://www.typo3.org'
        - label: 'TYPO3 GmbH'
          value: 'https://www.typo3.com'
Copied!

Usage in Fluid 

As this field is an object of type \TYPO3\CMS\Core\LinkHandling\TypolinkParameter you have to check for the property url to determine whether the field is set or not.

Note

Alternatively, you can set the field nullable: true. In this case the value will resolve to null if not set.

<f:if condition="{data.link_field.url}">
    <f:link.typolink parameter="{data.link_field}">Link</f:link.typolink>
</f:if>
Copied!
  • Previous
  • Next
Reference to the headline

Copy and freely share the link

This link target has no permanent anchor assigned. You can make a pull request on GitHub to suggest an anchor. The link below can be used, but is prone to change if the page gets moved.

Copy this link into your TYPO3 manual.

  • Home
  • Contact
  • Issues
  • Repository

Last rendered: Jun 29, 2026 07:52

© since 2023 by TYPO3 contributors
  • Legal Notice
  • Privacy Policy