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
    • temp, styles & lib
    • tt_*
    • resources
    • sitetitle
    • types
  • Content Objects (cObject)
    • Content objects (general information)
    • CASE
    • Content object array - COA, COA_INT
    • CONTENT
    • EDITPANEL
    • FILES
    • FLUIDTEMPLATE
      • dataProcessing
        • CommaSeparatedValueProcessor
        • DatabaseQueryProcessor
        • FilesProcessor
        • FlexFormProcessor
        • GalleryProcessor
        • LanguageMenuProcessor
        • MenuProcessor
        • SiteProcessor
        • SplitProcessor
        • Custom data processors
    • HMENU
      • 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
    • IMG_RESOURCE
    • LOAD_REGISTER
    • RECORDS
    • RESTORE_REGISTER
    • SVG
    • TEXT
    • USER and USER_INT
  • MENU
    • TMENU
    • TMENUITEM
  • GIFBUILDER
    • GIFBUILDER
    • Object names in this section
    • Examples
    • NON-Gifbuilder Objects
  • 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
  • Index

PAGE CONTENTS

  • makelinks
    • Properties
      • http
        • http.extTarget
        • http.wrap
        • http.ATagBeforeWrap
        • http.keep
        • http.ATagParams
      • mailto
        • mailto.wrap
        • mailto.ATagBeforeWrap
        • mailto.ATagParams
  1. Start
  2. Functions
  3. makelinks
View source How to edit Edit on GitHub

Display settings


Color scheme of code blocks:


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
  • 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

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

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"

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

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

Last updated: Jan 27, 2023 12:36

Last rendered: Jan 27, 2023 12:37

  • TYPO3 Theme 4.7.9
  • DRC v3.0.dev30
© Copyright since 2012 by the TYPO3 contributors
  • Legal Notice
  • Privacy Policy
  • Code of Conduct