TYPO3 Logo
TypoScript Reference
Release: 11.5

Loading data.

  • Introduction
  • Using and setting TypoScript
    • Add TypoScript in the backend
    • Add TypoScript in your extension
    • Constants
    • The constant editor
    • Register
    • Debugging / analyzing
  • Simple data types
  • Top-level objects
    • CONFIG & config
    • constants
    • _GIFBUILDER
    • module
    • PAGE
      • PAGE Examples
    • plugin
    • Reserved top-level objects
  • Content Objects (cObject)
    • Content objects (general information)
    • CASE
    • Content object array - COA, COA_INT
    • CONTENT
    • EDITPANEL
    • FILES
    • FLUIDTEMPLATE
    • HMENU
      • TMENU
        • TMENUITEM
      • Browse - previous and next links
      • Categories HMENU
      • Directory menu - menu of subpages
      • Keywords - menu of related pages
      • Language menu
      • List menu
      • Rootline - breadcrumb menu
      • Updated HMENU
      • Userfunction menu
    • IMAGE
      • GIFBUILDER
        • Examples
        • Note on (+calc)
        • Properties
        • GIFBUILDER objects
          • ADJUST
          • BOX
          • CROP
          • EFFECT
          • ELLIPSE
          • EMBOSS
          • IMAGE
          • OUTLINE
          • SCALE
          • SHADOW
          • TEXT
          • WORKAREA
    • IMG_RESOURCE
    • LOAD_REGISTER
    • RECORDS
    • RESTORE_REGISTER
    • SVG
    • TEXT
    • USER and USER_INT
  • dataProcessing
    • CommaSeparatedValueProcessor
    • DatabaseQueryProcessor
    • FilesProcessor
    • FlexFormProcessor
    • GalleryProcessor
    • LanguageMenuProcessor
    • MenuProcessor
    • SiteProcessor
    • SplitProcessor
    • Custom data processors
  • Functions
    • cache
    • Calc
    • Data / getText
    • encapsLines
    • getEnv
    • HTMLparser
    • HTMLparser_tags
    • if
    • imageLinkWrap
    • imgResource
    • makelinks
    • numberFormat
    • numRows
    • optionSplit
    • parseFunc
    • replacement
    • round
    • select
    • split
    • stdWrap
    • strPad
    • tags
    • typolink
  • Conditions
  • Appendix A – PHP include scripts
  • Glossary
  • About This Manual
  • Sitemap

Contributors Corner

  • View source of current document
  • How to edit
  • Edit current document on GitHub
  1. TypoScript Reference
  2. Functions
  3. makelinks
Report issue View source How to edit Edit on GitHub

Attention

TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

makelinks

makelinks substitutes all appearances of web addresses or mail links with a real link-tag. Web addresses and mail links must be contained in the text in the following form:

https://example.org

mailto:name@example.org
Copied!
  • Properties
    • http
      • http.extTarget
      • http.wrap
      • http.ATagBeforeWrap
      • http.keep
      • http.ATagParams
    • mailto
      • mailto.wrap
      • mailto.ATagBeforeWrap
      • mailto.ATagParams

Properties

http

Substitutes all external web addresses with a link tag so they are displayed as a link.

Can handle links of the form:

https://example.org
http://example.org
Copied!

http.extTarget

Property
http.extTarget
Data type
target
Description
The target of the link.
Default
_top

http.wrap

Property
http.wrap
Data type
wrap / stdWrap
Description
Wrap around the link.

http.ATagBeforeWrap

Property
http.ATagBeforeWrap
Data type
boolean
Description
If set, the link is first wrapped with http.wrap and then the <a>-tag.
Default
0

http.keep

Property
http.keep
Data type
list: "scheme","path","query"
Description
As default the link-text will be the full domain-name of the link.
Example

With the URL https://example.org/test/doc.php?id=3 in our text we will get the following results:

EXT:site_package/Configuration/TypoScript/setup.typoscript
http.keep = "":                   # example.org
http.keep = "scheme":             # https://example.org
http.keep = "scheme,path":        # https://example.org/test/doc.php
http.keep = "scheme,path,query":  # https://example.org/test/doc.php?id=3
Copied!

http.ATagParams

Property
http.ATagParams
Data type
tag-params / stdWrap
Description
Additional parameters
Example
EXT:site_package/Configuration/TypoScript/setup.typoscript
http.ATagParams = class="board"
Copied!

mailto

Substitutes all appearances of mail addresses with a link tag. Mail addresses must be contained in the text in the following form:

mailto:name@example.org
Copied!

mailto.wrap

Property
mailto.wrap
Data type
wrap / stdWrap
Description
Wrap around the link.

mailto.ATagBeforeWrap

Property
mailto.ATagBeforeWrap
Data type
boolean
Description
If set, the link is first wrapped with mailto wrap and then the <a>-tag.
Default
0

mailto.ATagParams

Property
mailto.ATagParams
Data type
tag-params / stdWrap
Description
Additional parameters
Example
EXT:site_package/Configuration/TypoScript/setup.typoscript
mailto.ATagParams = class="board"
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: Oct 16, 2024 07:45

© since 2012 by the TYPO3 contributors
  • Legal Notice
  • Privacy Policy