Attention
TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
CONFIG & config¶
Note
CONFIG is an object type (= complex data type).
TYPO3 by default creates a top level object config of the object type CONFIG.
In typo3/sysext/frontend/Classes/
this is known as
$GLOBALS['TSFE']->config['config']
, thus the property debug
below is
accessible as $GLOBALS['TSFE']->config['config']['debug']
.
Properties¶
Property |
Data Type |
Default |
---|---|---|
array with numeric indices |
||
<A>-params |
||
array |
||
false |
||
86400 (= 24 hours) |
||
0 |
||
array |
||
array |
||
false |
||
0 |
||
0 |
||
0 |
||
1 |
||
_top |
||
false |
||
en |
||
200 |
||
true |
||
utf-8 |
||
list of PIDs / string |
||
(array of strings) |
||
0 |
||
0 |
||
0 |
||
array |
||
": " (colon with following space) |
||
"ascii" / |
||
(at) |
||
. (just a simple dot) |
||
boolean / keyword |
||
array |
||
0 |
||
integer (page id) / keyword "NONE" |
||
<!--###USERNAME###--> |
||
absRefPrefix¶
Property
absRefPrefix
Data type
Description
If this value is set, then all relative links in TypoScript are prepended with this string.
Special keyword: "auto" lets TYPO3 autodetect the site root based on path prefixes (and not based on host name variables from the server, making this value safe for multi-domain environments).
Note: Using an URI in absRefPrefix
will require additional conditions
if you use different domains for your deployment stages in CI environments.
Note: If you're working on a server where you have different domain
names or different path segments leading to the same page (e.g. for internal
and external access), you might do yourself a favor and set absRefPrefix
to
the URL and path of your site, e.g. https://example.org/
. If you do not,
you risk to render pages to cache from the internal network and thereby
prefix image-references and links with a wrong path or a path not accessible
from outside.
Examples
Prefixing all links with a "/" results in absolute link paths:
config.absRefPrefix = /
Prefixing all links with the path to a subdirectory:
config.absRefPrefix = /some-subsite/
Prefixing all links with a URI scheme:
config.absRefPrefix = https://example.org/
additionalHeaders¶
Property
additionalHeaders
Data type
array with numeric indices
Description
This property can be used to define additional HTTP headers.
For each numeric index, there are the following sub-properties:
header: The header string
replace: Optional. If set, previous headers with the same name are replaced with the current one. Default is "1".
httpResponseCode: Optional. HTTP status code as an integer.
By default TYPO3 sends a "Content-Type" header with the defined encoding, unless this is disabled using disableCharsetHeader. It then sends cache headers, if configured via sendCacheHeaders. Then additional headers are send, plus finally a "Content-Length" header, if enabled via enableContentLengthHeader.
Example
config.additionalHeaders {
10 {
# The header string
header = foo
# Do not replace previous headers with the same name.
replace = 0
# Force a 401 HTTP response code
httpResponseCode = 401
}
# Always set cache headers to private, overwriting the default TYPO3 Cache-control header
20.header = Cache-control: Private
}
admPanel¶
Property
admPanel
Data type
Description
If set, the admin panel appears in the bottom of pages.
Note: In addition the panel must be enabled for the user as well, using the TSconfig for the user! See the TSconfig reference about additional admin panel properties.
ATagParams¶
Property
ATagParams
Data type
<A>-params
Description
Additional parameters to all links in TYPO3 (excluding menu-links).
baseURL¶
Property
baseURL
Data type
Description
This writes the <base>
tag in the header of the document. Set this to
the value that is expected to be the URL and append a "/" to the end
of the string.
Example
config.baseURL = https://example.org/sub_dir/
cache¶
Property
cache
Data type
array
Description
Determine the maximum cache lifetime of a page.
The maximum cache lifetime of a page can not only be determined by the start and stop times of content elements on the page itself, but also by arbitrary records on any other page. However, the page has to be configured so that TYPO3 knows the start and stop times of which records to include. Otherwise, the cache entry will be used although a start/stop date already passed by.
To include records of type <table name> on page <pid> into the cache lifetime calculation of page <page-id>, add the following TypoScript:
config.cache.<page-id> = <table name>:<pid>
Multiple record sources can be added as comma-separated list, see the examples.
You can use the keyword "all" instead of a <page-id> to consider records for the cache lifetime of all pages.
Examples
config.cache.10 = fe_users:2
This includes the fe_users records on page 2 in the cache lifetime calculation for page 10:
config.cache.10 = fe_users:2,tt_news:11
This includes records from multiple sources, namely the fe_users records on page 2 and the tt_news records on page 11:
config.cache.all = fe_users:2
Consider the fe_user records on page 2 for the cache lifetime of all pages.
cache_clearAtMidnight¶
Property
cache_clearAtMidnight
Data type
Default
false
Description
With this setting the cache always expires at midnight of the day, the page is scheduled to expire.
cache_period¶
Property
cache_period
Data type
Default
86400 (= 24 hours)
Description
The number of second a page may remain in cache.
This value is overridden by the value set in the page-record (field="cache_timeout") if this value is greater than zero.
compressCss¶
Property
compressCss
Data type
Default
0
Description
If set, CSS files referenced in page.includeCSS
and the like will be
minified and compressed. Does not work on files, which are referenced
in page.headerData
.
Minification will remove all excess space. The more significant
compression step (using gzip compression) requires
$GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']
to be enabled in the
Install Tool. For this to work you also need to activate the gzip-
related compressionLevel options in .htaccess
, as otherwise the
compressed files will not be readable by the user agent.
TYPO3 comes with a built-in compression handler, but you can
also register your own one using
$GLOBALS['TYPO3_CONF_VARS']['FE']['cssCompressHandler']
.
$GLOBALS['TYPO3_CONF_VARS']['FE']['cssCompressHandler'] =
\TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) .
'Classes/CssCompressHandler.php:Vendor\MyExt\CssCompressHandler->compressCss';
Example
config.compressCss = 1
compressJs¶
Property
compressJs
Data type
Default
0
Description
Enabling this option together with
$GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']
in the Install Tool
delivers Frontend JavaScript files referenced in page.includeJS
and
the like using GZIP compression. Does not work on files, which are
referenced in page.headerData
.
This can significantly reduce file sizes of linked JavaScript files and thus decrease loading times.
Please note that this requires .htaccess
to be adjusted, as otherwise
the files will not be readable by the user agent. Please see the
description of $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']
in the
Install Tool.
TYPO3 comes with a built-in compression handler, but you can
also register your own one using
$GLOBALS['TYPO3_CONF_VARS']['FE']['jsCompressHandler']
.
$GLOBALS['TYPO3_CONF_VARS']['FE']['jsCompressHandler'] =
\TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) .
'Classes/JsCompressHandler.php:Vendor\MyExt\JsCompressHandler->compressJs';
Example
config.compressJs = 1
concatenateCss¶
Property
concatenateCss
Data type
Default
0
Description
Setting config.concatenateCss
merges Stylesheet files referenced in
the Frontend in page.includeCSS and the like together. Files are merged
only, if their media attribute has the same value, e.g. if it is "all"
for several files. Does not work on files, which are referenced in
page.headerData
.
TYPO3 comes with a built-in concatenation handler, but you
can also register your own one using
$GLOBALS['TYPO3_CONF_VARS']['FE']['cssConcatenateHandler']
.
$GLOBALS['TYPO3_CONF_VARS']['FE']['cssCompressHandler'] =
\TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) .
'Classes/CssCompressHandler.php:Vendor\MyExt\CssCompressHandler->compressCss';
Example
config.concatenateCss = 1
concatenateJs¶
Property
concatenateJs
Data type
Default
0
Description
Setting config.concatenateJs
merges JavaScript files referenced in
the Frontend in page.includeJS
and the like together. Does not work
on files, which are referenced in page.headerData
.
If all files to be concatenated are marked with the async flag, the async attribute is assigned to the script tag.
TYPO3 comes with a built-in concatenation handler, but you
can also register your own one using
$GLOBALS['TYPO3_CONF_VARS']['FE']['jsConcatenateHandler']
.
$GLOBALS['TYPO3_CONF_VARS']['FE']['jsConcatenateHandler'] =
\TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) .
'Classes/JsConcatenateHandler.php:Vendor\MyExt\JsConcatenateHandler->concatenateJs';
Example
config.concatenateJs = 1
page = PAGE
page.includeJSFooter {
test = fileadmin/user_upload/test.js
test.async = 1
test2 = fileadmin/user_upload/test2.js
test2.async = 1
}
concatenateJsAndCss¶
Property
concatenateJsAndCss
Data type
Default
0
Description
Note: This property was deprecated and is planned to be removed!
Use config.concatenateJs
and config.concatenateCss
instead.
Setting config.concatenateJsAndCss
bundles JS and CSS files in the FE.
TYPO3 comes with a built-in concatenation handler, but you
can also register your own one using
$GLOBALS['TYPO3_CONF_VARS']['FE']['concatenateHandler']
.
$GLOBALS['TYPO3_CONF_VARS']['FE']['concatenateHandler'] =
\TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) .
'Classes/ConcatenateHandler.php:Vendor\MyExt\ConcatenateHandler->concatenateFiles';
Example
config.concatenateJsAndCss = 1
content_from_pid_allowOutsideDomain¶
Property
content_from_pid_allowOutsideDomain
Data type
Description
Using the "Show content from this page instead" feature allows you to insert content from the current domain only. Setting this option will allow content included from anywhere in the page tree!
Another use case is mount points: By means of the page type "Mount Point" you can virtually
insert a whole subtree from somewhere else by just pointing to it. However, usually this
only works within the page tree of the given domain. Setting
config.content_from_pid_allowOutsideDomain = 1
removes that restriction.
contentObjectExceptionHandler¶
Property
contentObjectExceptionHandler
Data type
array
Description
Exceptions which occur during rendering of content objects (typically plugins) will now be caught by default in production context and an error message is shown along with the rendered output.
If this is done, the page will remain available while the section of the page that produces an error (i.e. throws an exception) will show a configurable error message. By default this error message contains a random code which references the exception and is also logged by the logging framework for developer reference.
Important
Instead of breaking the whole page when an exception occurs, an error message is shown for the part of the page that is broken. Be aware that unlike before, it is now possible that a page with error message gets cached.
To get rid of the error message not only the actual error needs to be fixed, but the cache must be cleared for this page.
Examples
# Use 1 for the default exception handler (enabled by default in production context)
config.contentObjectExceptionHandler = 1
# Use a class name for individual exception handlers
config.contentObjectExceptionHandler = TYPO3\CMS\Frontend\ContentObject\Exception\ProductionExceptionHandler
# Customize the error message. A randomly generated code is replaced within the message if needed.
config.contentObjectExceptionHandler.errorMessage = Oops an error occurred. Code: %s
# Configure exception codes which will not be handled, but bubble up again (useful for temporary fatal errors)
tt_content.login.20.exceptionHandler.ignoreCodes.10 = 1414512813
# Disable the exception handling for an individual plugin/ content object
tt_content.login.20.exceptionHandler = 0
# ignoreCodes and errorMessage can be both configured globally …
config.contentObjectExceptionHandler.errorMessage = Oops an error occurred. Code: %s
config.contentObjectExceptionHandler.ignoreCodes.10 = 1414512813
# … or locally for individual content objects
tt_content.login.20.exceptionHandler.errorMessage = Oops an error occurred. Code: %s
tt_content.login.20.exceptionHandler.ignoreCodes.10 = 1414512813
debug¶
Property
debug
Data type
Description
If set then debug information in the TypoScript code is sent.
This applies e.g. to menu objects and the parsetime output.
The parsetime will be sent as HTTP response header X-TYPO3-Parsetime
.
defaultGetVars¶
Property
defaultGetVars
Data type
array
Description
Allows to set default values for GET parameters. Default value is taken only if the GET parameter isn't defined. Array notation is done with dots, e.g.:
test['var1']
will be written as test.var1
Example
config.defaultGetVars {
test.var1.var2.p3 = 15
}
disableAllHeaderCode¶
Property
disableAllHeaderCode
Data type
Default
false
Description
If this is set, none of the features of the PAGE object is processed
and the content of the page will be the result of the cObject array
(1,2,3,4...) of the PAGE object. This means that the result of the
cObject should include everything from the <HTML>
.... to the </HTML>
tag!
Use this feature in templates supplying other content-types than HTML. That could be an image or a WAP-page!
disableBodyTag¶
Property
disableBodyTag
Data type
Default
0 (false)
Description
If this option is set the TYPO3 core will not generate the
opening <body ...>
part of the body tag. The closing </body>
is not affected and will still be issued.
disableBodyTag
takes precedence over the PAGE properties
bodyTagCObject
, bodyTag
and
bodyTagAdd
. With config.disableBodyTag = 1
the others are
ignored and don't have any effect.
disableCharsetHeader¶
Property
disableCharsetHeader
Data type
Description
By default a HTTP header content-type:text/html; charset...
is sent.
This option will disable that.
disableImgBorderAttr¶
Property
disableImgBorderAttr
Data type
Description
Returns the border
attribute for an <img>
tag only if the doctype is
not xhtml_strict
or xhtml_11
or if the config parameter
disableImgBorderAttr
is not set
disablePageExternalUrl¶
Property
disablePageExternalUrl
Data type
Description
If set, pages with doktype "External Url" will not trigger jumpUrl in TSFE.
disablePrefixComment¶
Property
disablePrefixComment
Data type
Description
If set, the stdWrap property prefixComment will be disabled, thus preventing any revealing and space-consuming comments in the HTML source code.
disablePreviewNotification¶
Property
disablePreviewNotification
Data type
Default
0
Description
Disables the "preview" notification box completely.
disableLanguageHeader¶
Property
disableLanguageHeader
Data type
Default
0
Description
TYPO3 by default sends a Content-language: XX
HTTP header,
where "XX" is the ISO code of the according language.
For the default language (sys_language_uid = 0), this header is based
on the value of config.sys_language_isocode_default
. If this is unset,
config.language is used. If that is unset as well, it finally falls
back to "en".
For other languages, it uses the value from language_isocode from
sys_language. That value may be overwritten by config.sys_language_isocode
.
If config.disableLanguageHeader
is set, this header will not be sent.
doctype¶
Property
doctype
Data type
Description
If set, then a document type declaration (and an XML prologue) will be generated. The value can either be a complete doctype or one of the following keywords:
xhtml_trans for the XHTML 1.0 Transitional doctype.
xhtml_strict for the XHTML 1.0 Strict doctype.
xhtml_basic for the XHTML basic doctype.
xhtml_11 for the XHTML 1.1 doctype.
xhtml+rdfa_10 for the XHTML+RDFa 1.0 doctype.
html5 for the HTML5 doctype.
none for no doctype at all.
Note
Keywords also change the way TYPO3 generates some of the
XHTML tags to ensure valid XML. If you set doctype to a string, then
you must also set config.xhtmlDoctype
(see below).
See config.htmlTag_setParams and config.htmlTag_langKey for more details on the effect on the HTML tag.
Default is the HTML 5 doctype:
<!DOCTYPE html>
doctypeSwitch¶
Property
doctypeSwitch
Description
If set, the order of <?xml...> and <!DOCTYPE...> will be reversed. This is needed for MSIE to be standards compliant with XHTML.
Background:
By default TYPO3 outputs the XML/DOCTYPE in compliance with the standards of XHTML. However a browser like MSIE will still run in "quirks-mode" unless the <?xml> and <DOCTYPE> tags are ordered opposite. But this breaks CSS validation...
With this option designers can decide for themselves what they want then.
If you want to check the compatibility-mode of your webbrowser you can do so with a simple JavaScript that can be inserted on a TYPO3 page like this:
page.headerData.1 = TEXT
page.headerData.1.value = <script>alert(document.compatMode);</script>
If your browser has detected the DOCTYPE correctly it will report "CSS1Compat"
If you are not running in compliance mode you will get some other message. MSIE will report "BackCompat" for instance - this means it runs in quirks-mode, supporting all the old "browser-bugs".
enableContentLengthHeader¶
Property
enableContentLengthHeader
Data type
Default
1
Description
If set, a header "content-length: [bytes of content]" is sent.
If the Backend user is logged in, this is disabled. The reason is that the content length header cannot include the length of these objects and the content-length will cut off the length of the document in some browsers.
extTarget¶
Property
extTarget
Data type
target
Default
_top
Description
Default external target. Used by typolink if no extTarget is set
fileTarget¶
Property
fileTarget
Data type
target
Description
Default file link target. Used by typolink if no fileTarget is set.
forceTypeValue¶
Property
forceTypeValue
Data type
Description
Force the &type
value of all TYPO3 generated links to a specific value
(except if overruled by local forceTypeValue
values).
Useful if you run a template with special content at - say &type=95
-
but still wants to keep your targets neutral. Then you set your
targets to blank and this value to the type value you wish.
formMailCharset¶
Property
formMailCharset
Data type
Default
"" (unset)
Description
Character set of mails sent through TYPO3 mail forms. If it is unset, the character set defined in metaCharset is used.
ftu¶
Property
ftu
Data type
Default
false
Description
If set, the "&ftu=...." GET-fallback identification is inserted.
"&ftu=[hash]" is always inserted in the links on the first page a user hits. If it turns out in the next hit that the user has cookies enabled, this variable is not set anymore as the cookies does the job. If no cookies is accepted the "ftu" remains set for all links on the site and thereby we can still track the user.
You should not set this feature if grabber-spiders like Teleport are going to grab your site!
You should not set this feature if you want search-engines to index your site.
You can also ignore this feature if you're certain, website users will use cookies.
"ftu" means fe_typo_user ("fe" is "frontend").
headerComment¶
Property
headerComment
Data type
Description
The content is added before the "TYPO3 Content Management Framework" comment in the <head> section of the page. Use this to insert a note like that "Programmed by My-Agency".
htmlTag_dir¶
Property
htmlTag_dir
Data type
Description
Deprecated since version 9: See note below.
Sets text direction for whole document (useful for display of Arabic, Hebrew pages).
Basically the value becomes the attribute value of "dir" for the
<html>
tag.
Values:
rtl
= Right-To-Left (for Arabic / Hebrew)
ltr
= Left-To-Right (Default for other languages)
Example
config.htmlTag_dir = rtl
Note
Used to older TYPO3 versions? If you are using site configuration you do not need to set htmlTag_dir
in TypoScript - use
the site configuration instead.
htmlTag_langKey¶
Property
htmlTag_langKey
Data type
Default
en
Description
Deprecated since version 9: See note below.
Allows you to set the language value for the attributes xml:lang
and
lang
in the <html>
tag (when using config.doctype = xhtml*
).
The values must follow the format specified in IETF RFC 3066
Example
config.htmlTag_langKey = en-US
Note
Used to older TYPO3 versions? If you are using site configuration you do not need to set htmlTag_langKey
in TypoScript - use
the site configuration instead. Instead of htmlTag_langKey, the ISO code is used, see sys_language_isocode.
htmlTag_setParams¶
Property
htmlTag_setParams
Data type
Description
Sets the attributes for the <html>
tag on the page. If you set
doctype to a keyword enabling XHTML then some attributes are
already set. This property allows you to override any preset
attributes with your own content if needed.
Special: If you set it to "none" then no attributes will be set at any event.
Example
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
Warning
If you are using htmlTag.atttributes
this property (htmlTag_setParams
) will not have any effect.
Note
Used to older TYPO3 versions? If you are using site configuration you do not need to set htmlTag_setParams
for language
related configuration in TypoScript - use the site configuration instead.
htmlTag.attributes¶
Property
htmlTag.attributes
Data type
Warning
If you are using htmlTag.atttributes
the property htmlTag_setParams
will not have any effect.
Note
Please note that lang
attribute in these examples are auto-generated by Site configuration,
depending on the value added there.
htmlTag_stdWrap¶
Property
htmlTag_stdWrap
Data type
Description
Modify the whole <html>
tag with stdWrap functionality. This can be
used to extend or override this tag.
index_descrLgd¶
Property
index_descrLgd
Data type
Default
200
Description
This indicates how many chars to preserve as description for an indexed page. This may be used in the search result display.
index_enable¶
Property
index_enable
Data type
Description
Enables cached pages to be indexed.
Automatically enabled when EXT:indexed_search is enabled.
index_externals¶
Property
index_externals
Data type
Description
If set, external media linked to on the pages is indexed as well.
Automatically enabled when EXT:indexed_search is enabled.
index_metatags¶
Property
index_metatags
Data type
Default
true
Description
This allows to turn on or off the indexing of metatags. It is turned on by default.
inlineStyle2TempFile¶
Property
inlineStyle2TempFile
Data type
Default
1
Description
If set, the inline styles TYPO3 controls in the core are written to a
file, typo3temp/assets/css/stylesheet_[hashstring].css
, and the header
will only contain the link to the stylesheet.
The file hash is based solely on the content of the styles.
Example
config.inlineStyle2TempFile = 0
intTarget¶
Property
intTarget
Data type
target
Description
Default internal target. Used by typolink if no target is set
language¶
Property
language
Data type
Description
Deprecated since version 9: This setting will be removed in TYPO3 v10. In TYPO3 9 it acts as fallback. Language settings should be configured in the Site configuration.
Language key. See lang for more information.
Select between:
English (default) = [empty]
Danish = dk
German = de
Norwegian = no
Italian = it
etc...
The value must correspond to the key used for the backend system language if
there is one. See inside typo3/sysext/core/Classes/Localization/Locales.php
or look at the translation page on typo3.org for the official 2-byte key for
a given language. Notice that selecting the official key is important if you
want to get labels in the correct language from "locallang" files.
If the language you need is not yet a system language in TYPO3 you can
use an artificial string of your choice and provide values for it via
the TypoScript template where the property _LOCAL_LANG
for most
plugins will provide a way to override/add values for labels. The keys
to use must be looked up in the locallang-file used by the plugin of
course.
language_alt¶
Property
language_alt
Data type
Description
If language is used, this can be set to another language key which will be used for labels if a label was not found for the main language. For instance a brazil portuguese website might specify "pt" as alternative language which means the portuguese label will be shown if none was available in the main language, brazil portuguese. This feature makes sense if one language is incompletely translated and close to another language.
linkVars¶
Property
linkVars
Data type
list
Description
HTTP_GET_VARS
, which should be passed on with links in TYPO3. This
is compiled into a string stored in $GLOBALS['TSFE']->linkVars
The values are rawurlencoded in PHP.
You can specify a range of valid values by appending a () after each value. If this range does not match, the variable won't be appended to links. This is very important to prevent that the cache system gets flooded with forged values.
The range may contain one of these values:
[a]-[b] -A range of allowed integer values
int -Only integer values are allowed
[a]|[b]|[c] -A list of allowed strings (whitespaces will be removed)
/[regex]/ -Match against a regular expression (PCRE style)
You can use the pipe character (|) to access nested properties.
Note
Do not include the type
and L
parameter in the linkVars
list, as this will result in unexpected behavior.
Examples
config.linkVars = print
This will add &print=[print-value]
to all links in
TYPO3.
config.linkVars = tracking|green(0-5)
With the above configuration the following example GET parameters will
be kept: &tracking[green]=3
. But a get parameter like
tracking[blue]
will not be kept.
locale_all¶
Property
locale_all
Data type
Description
Deprecated since version 9: This setting will be removed in v10. In v9, language settings
from the Site configuration are used by default and the TypoScript settings
act as fallback, see also TYPO3\CMS\Core\Site\Entity\SiteLanguage->getLocale()
.
setlocale("LC_ALL", [value]);
value-examples: deutsch, de_DE, danish, portuguese, spanish, french,
norwegian, italian. See www.php.net for other value. Also on linux,
look at /usr/share/locale/
$GLOBALS['TSFE']->localeCharset
is intelligently set to the assumed charset of the
locale strings. This is used in strftime to convert locale
strings to the UTF-8 of the frontend.
It is possible to supply a comma-separated list of locales as a fallback chain
Example
This will render dates in danish made with stdWrap/strftime:
locale_all = danish
locale_all = da_DK
message_preview¶
Property
message_preview
Data type
Description
Alternative message in HTML that appears when the preview function is active!
message_preview_workspace¶
Property
message_preview_workspace
Data type
Description
Alternative message in HTML that appears when the preview function is active in a draft workspace. You can use sprintf() placeholders for Workspace title (first) and number (second).
Examples
config.message_preview_workspace = <div class="previewbox">Displaying workspace named "%s" (number %s)!</div>
config.message_preview_workspace = <div class="previewbox">Displaying workspace number %2$s named "%1$s"!</div>
metaCharset¶
Property
metaCharset
Data type
Default
utf-8
Description
Charset used for the output document. For example in the meta tag:
<meta charset=... />
It is used for a) HTML meta tag, b) HTTP header (unless disabled with disableCharsetHeader) and c) xhtml prologues (if available).
If metaCharset is not UTF-8, the output content is automatically converted to metaCharset before output and likewise are values posted back to the page converted from metaCharset to UTF-8 for internal processing. This conversion takes time of course so there is another good reason to use the same charset for both.
If an unknown charset is provided a \RuntimeException
will be
thrown.
MP_defaults¶
Property
MP_defaults
Data type
Description
Allows you to set a list of page id numbers which will always have a certain "&MP=..." parameter added.
Syntax:
[id],[id],... : [MP-var] | [id],[id],... : [MP-var] | ...
Example
config.MP_defaults = 36,37,48 : 2-207
This will by default add &MP=2-207
to all links pointing to pages
36,37 and 48.
MP_disableTypolinkClosestMPvalue¶
Property
MP_disableTypolinkClosestMPvalue
Data type
Description
If set, the typolink function will not try to find the closest MP value for the id.
MP_mapRootPoints¶
Property
MP_mapRootPoints
Data type
list of PIDs / string
Description
Defines a list of ID numbers from which the MP-vars are automatically calculated for the branch.
The result is used just like MP_defaults are used to
find MP-vars if none has been specified prior to the call to
\TYPO3\CMS\Frontend\Typolink\PageLinkBuilder
.
You can specify root
as a special keyword in the list of IDs and
that will create a map-tree for the whole site (but this may be VERY
processing intensive if there are many pages!).
The order of IDs specified may have a significance; Any ID in a branch which is processed already (by a previous ID root point) will not be processed again.
The configured IDs have to be the uids of Mount Point pages itself, not the targets.
Tip
To mount content from parts of the page tree that don't belong to the current domain set content_from_pid_allowOutsideDomain to true.
namespaces¶
Property
namespaces
Data type
(array of strings)
Description
This property enables you to add xml namespaces (xmlns) to the <html>
tag. This is especially useful if you want to add RDFa or microformats
to your HTML.
Example
config.namespaces.dc = http://purl.org/dc/elements/1.1/
config.namespaces.foaf = http://xmlns.com/foaf/0.1/
This configuration will result in an <html>
tag like:
<html xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
no_cache¶
Property
no_cache
Data type
Default
-
Description
If this is set to true, the page will not be cached. If set to false, it's ignored. Other parameters may have set it to true of other reasons.
noPageTitle¶
Property
noPageTitle
Data type
Default
0
Description
If you only want to have the site name (from the template record) in
your <title>
tag, set this to 1. If the value is 2 then the <title>
tag is not printed at all.
Please take note that this tag is required for (X)HTML compliant output, so you should only disable this tag if you generate it manually already.
pageRendererTemplateFile¶
Property
pageRendererTemplateFile
Data type
Default
EXT:core/Resources/Private/Templates/PageRenderer.html
Description
Sets the template for page renderer class
TYPO3\CMS\Core\Page\PageRenderer
.
Example
pageRendererTemplateFile = fileadmin/test_pagerender.html
pageTitle¶
Property
pageTitle
Data type
Description
stdWrap for the page title. This option will be executed after all other processing options like titleTagFunction and pageTitleFirst.
pageTitleFirst¶
Property
pageTitleFirst
Data type
Default
0
Description
TYPO3 by default prints a title tag in the format "website: page title".
If pageTitleFirst
is set (and if the page title is printed), then the
page title will be printed IN FRONT OF the template title. So it will
look like "page title: website".
pageTitleProviders¶
Property
pageTitleProviders
Data type
array
Description
In order to keep setting the titles in control, an API to set the page title is available. The API uses
PageTitleProviders
to define the page title based on page record and the content on the page.
Based on the priority of the providers, the PageTitleProviderManager
will check the providers if a title
is given by the provider. It will start with the highest priority PageTitleProviders
and will end with
the lowest in priority.
Examples
By default, TYPO3 ships with three providers:
config.pageTitleProviders {
altPageTitle {
provider = TYPO3\CMS\Core\PageTitle\AltPageTitleProvider
before = record
}
record {
provider = TYPO3\CMS\Core\PageTitle\RecordPageTitleProvider
}
seo {
provider = TYPO3\CMS\Seo\PageTitle\SeoTitlePageTitleProvider
before = record
after = altPageTitle
}
}
The ordering of the providers is based on the before
and after
parameters. If you want a provider
to be handled before a specific other provider, just set that provider in the before
, do the same with
after
.
Note
The seo
PageTitleProvider is only available with installed SEO system extension.
You can find information about creating own PageTitleProviders in the section PageTitle API.
pageTitleSeparator¶
Property
pageTitleSeparator
Default
: (colon with following space)
Description
The signs which should be printed in the title tag between the website
name and the page title. If pageTitleSeparator
is set, but no
sub-properties are defined, then a space will be added to the end of the
separator. stdWrap is useful to adjust whitespaces at the beginning and
the end of the separator.
Examples
This produces a title tag with the content "website . page title":
config.pageTitleSeparator = .
This produces a title tag with the content "website - page title":
config.pageTitleSeparator = -
config.pageTitleSeparator.noTrimWrap = | | |
This produces a title tag with the content "website*page title":
config.pageTitleSeparator = *
config.pageTitleSeparator.noTrimWrap = |||
removeDefaultCss¶
Property
removeDefaultCss
Data type
Description
Remove CSS generated by _CSS_DEFAULT_STYLE configuration of extensions.
(_CSS_DEFAULT_STYLE
outputs a set of default styles, just because
an extension is installed.)
removeDefaultJS¶
Property
removeDefaultJS
Default
external
Description
If set, the default JavaScript in the header will be removed.
The default JavaScript is the decryption function for email addresses.
Special case: If the value is "external", then the default JavaScript is written to a temporary file and included from that file. See inlineStyle2TempFile.
Examples
config.removeDefaultJS = external
config.removeDefaultJS = 1
removePageCss¶
Property
removePageCss
Data type
Description
Remove CSS generated by _CSS_PAGE_STYLE configuration of extensions.
(_CSS_PAGE_STYLE
renders certain styles not just because an
extension is installed, but only in a special situation. E.g. some
styles will be output, when a textpic element with an image
positioned alongside the text is present on the current page.)
sendCacheHeaders¶
Property
sendCacheHeaders
Data type
Description
If set, TYPO3 will output cache-control headers to the client based mainly on whether the page was cached internally. This feature allows client browsers and/or reverse proxies to take load off TYPO3 websites.
The conditions for allowing client caching are:
page was cached
No *_INT or *_EXT objects were on the page (e.g. USER and USER_INT)
No frontend user is logged in
No backend user is logged in
If these conditions are met, the headers sent are:
Last-Modified [SYS_LASTCHANGED of page id]
Expires [expire time of page cache]
ETag [md5 of content]
Cache-Control: max-age: [seconds til expiretime]
Pragma: public
In case caching is not allowed, these headers are sent to avoid client caching:
Cache-Control: private, no-store
Notice that enabling the browser caches means you have to consider how log files are written. Because when a page is cached on the client it will not invoke a request to the webserver, thus not writing the request to the log. There should be ways to circumvent these problems but they are outside the domain of TYPO3 in any case.
Tip: Enabling cache-control headers might confuse editors seeing old content served from the browser cache. "Shift-Reload" will bypass both browser- and reverse-proxy caches and even make TYPO3 regenerate the page. Teach them that trick!
Thanks to Ole Tange, www.forbrug.dk for co-authoring this feature.
sendCacheHeaders_onlyWhenLoginDeniedInBranch¶
Property
sendCacheHeaders_onlyWhenLoginDeniedInBranch
Data type
Description
If this is set, then cache-control headers allowing client caching is sent only if user-logins are disabled for the branch. This feature makes it easier to manage client caching on sites where you have a mixture of static pages and dynamic sections with user logins.
The background problem is this: In TYPO3 the same URL can show different content depending on whether a user is logged in or not. If a user is logged in, cache-headers will never allow client caching. But if the same URL was visited without a login prior to the login (allowing caching) the user will still see the page from cache when logged in (and so thinks he is not logged in anyway)! The only general way to prevent this is to have a different URL for pages when users are logged in.
Another way to solve the problem is using this option in combination with disabling and enabling logins in various sections of the site. In the page records ("Advanced" page types) you can disable frontend user logins for branches of the page tree. Since many sites only need the login in a certain branch of the page tree, disabling it in all other branches makes it much easier to use cache-headers in combination with logins; Cache-headers should simply be sent when logins are not allowed and never be send when logins are allowed! Then there will never be problems with logins and same-URLs.
spamProtectEmailAddresses¶
Property
spamProtectEmailAddresses
Data type
"ascii" / -10 to 10
Description
If set, then all email addresses in typolinks will be encrypted so spam bots cannot detect them.
If you set this value to a number, then the encryption is simply an offset of character values. If you set this value to "-2" then all characters will have their ASCII value offset by "-2". To make this possible, a little JavaScript code is added to every generated web page!
(It is recommended to set the value in the range from -5 to 1 since setting it to >= 2 means a "z" is converted to "|" which is a special character in TYPO3 tables syntax – and that might confuse columns in tables. Now hardcoded range)
Alternatively you can set this value to the keyword "ascii". This way every character of the "mailto:" address will be translated to a Unicode HTML notation. Have a look at the example to see how this works.
Example
mailto:a@b.c
will be converted to mailto:a@b.c
The big advantage of this method is that it does not need any JavaScript!
spamProtectEmailAddresses_atSubst¶
Property
spamProtectEmailAddresses_atSubst
Data type
Default
(at)
Description
Substitute label for the at-sign (@).
spamProtectEmailAddresses_lastDotSubst¶
Property
spamProtectEmailAddresses_lastDotSubst
Data type
Default
. (just a simple dot)
Description
Substitute label for the last dot in the email address.
Example
(dot)
sword_noMixedCase¶
Property
sword_noMixedCase
Data type
Description
Used by the parseFunc-substitution of search Words (sword):
If set, the words MUST be the exact same case as the search word was.
sword_standAlone¶
Property
sword_standAlone
Data type
Description
Used by the parseFunc-substitution of search Words (sword):
If set, the words MUST be surrounded by whitespace in order to be marked up.
sys_language_isocode¶
Property
sys_language_isocode
Data type
Description
This setting will be deprecated in v10 and removed in v11. In v9, language settings
from the Site configuration are used by default and the TypoScript setting
act as fallback, see also TYPO3\CMS\Core\Site\Entity\SiteLanguage->getTwoLetterIsoCode()
(changelog: ext_core:Changelog/10.0/Deprecation-88559-TSFE-sys_language_isocode).
ISO 639-1 language code for the according language. By default this
is being set by TSFE:sys_language_isocode
. The value is derived
from the ISO code that is stored within the sys_language record.
You can override the value, which was retrieved that way, with this
setting.
The ISO code is also used for the language attribute of the HTML tag. Therefore the setting htmlTag_langKey is not needed anymore, if it is the same as the ISO code.
See the example at sys_language_isocode_default!
sys_language_isocode_default¶
Property
sys_language_isocode_default
Data type
Default
en
Description
Deprecated since version 9: This setting will be removed in v10. In v9, language settings from the Site configuration are used by default and the TypoScript settings act as fallback.
ISO 639-1 language code for the default language (that is
sys_language_uid = 0
).
Example
# Danish by default
config.sys_language_uid = 0
config.sys_language_isocode_default = da
[siteLanguage = locale = de_CH.UTF-8]
config.sys_language_isocode = ch
[GLOBAL]
sys_language_mode¶
Property
sys_language_mode
Data type
Description
Deprecated since version 9.4: Will be removed in TYPO3 v10.0. The language settings are now configured in the Site configuration. In PHP code, the function LanguageAspect->getFallbackChain() can be used instead.
Configures what the system should do when a page is not translated
to the requested language.
It is only evaluated when sys_language_uid
is greater than 0
and the requested page translation is NOT available.
Internally this setting corresponds to
LanguageAspect->contentId
.
The syntax is "[keyword] ; [value]".
Possible keywords are:
- [empty] (not set)
If not set and the page is not translated, the system will behave as if the default language was requested. In that case both
LanguageAspect->contentId
andLanguageAspect->id
will be set to0
.- content_fallback
Recommended. The system will always operate with the selected language even if the page is not translated and has no page overlay record. This will keep menus etc. translated. However, the content on the page can still fall back to another language, defined by the value of this keyword, e.g.
content_fallback;1,3,0
, to fall back to the content of sys_language_uid 1, after that to the content of sys_language_uid 3 and if that is not present either, to default (0).Note that the fallback affects all content of the page. This means that once a translated page record is found in the fallback chain, the system will try to use this language for the rendering even if there is no properly translated content.
- strict
If the requested translation does not exist the system will report a Page Not Found (404) error. Basically this means that all pages with gray background in the Web > Info / Localization overview module will fail (they would otherwise fall back to default language in one way or another).
- ignore
The system will stay with the selected language even if the page is not translated and there is no content available for this language, so you can handle that situation on your own then. The system will render the page and the content as if the translation would exist. Internally
LanguageAspect->contentId
is set to the value ofLanguageAspect->id
.
Refer to the Frontend Localization Guide for an in-depth discussion.
sys_language_overlay¶
Property
sys_language_overlay
Data type
boolean / keyword
Description
Deprecated since version 9.4: Will be removed in TYPO3 v10.0. The language settings are now configured in the Site configuration. In PHP code, the function LanguageAspect->getOverlayType() can be used instead.
Defines whether TYPO3 should use the content overlay technique when fetching translated content. Content overlay means fetching records from the default language first and then replacing specific fields with the translation if that is found.
It is only evaluated when LanguageAspect->contentId > 0
.
Internally it sets the property LanguageAspect->overlayType
at a request.
Further calls via $TSFE->sys_page->getRecordOverlay
receive this value
to see if overlaying should take place.
The requirements for this is that the table is configured with
languageField
and transOrigPointerField
in the ['ctrl']
section of
$GLOBALS['TCA']
. Also, exclusion of certain fields can be done with the
"l10n_mode" directive in the field-configuration of $GLOBALS['TCA']
.
For backend administration this requires that you configure the
"Web > Page" module to display content elements accordingly; That each
default element is shown and next to it any translation found. This
configuration can be done with Page TSconfig for a section of the
website using the object path mod.web_layout.defLangBinding = 1
.
Possible values:
- 0
Just fetch records from the selected language as given by
LanguageAspect->contentId
. No overlay will happen, no fetching of the records from the default language. This boils down to "free mode" language handling. This is the only mode which shows records without a default language parent.An exception to this rule can be made with the TypoScript CONTENT object if you manually set
select.includeRecordsWithoutDefaultTranslation = 1
.- 1
Fetch records from the default language and overlay them with translations. If a record is not translated the default language will be used.
- hideNonTranslated
Fetch records from the default language and overlay them with translations. If some record is not translated it will not be shown.
sys_language_uid¶
Property
sys_language_uid
Data type
Description
Deprecated since version 9.4: Will be removed in TYPO3 v10.0. The language settings are now configured in the Site configuration. In PHP code, the function LanguageAspect->getid() can be used instead.
This property holds the value of the field "uid" of a record of table "sys_language". Various parts of the frontend rendering code will select records which are assigned to this language. See ->SELECT
Internally this value is used to initialize the TypoScriptFrontendController
LanguageAspect->id
property.
The LanguageAspect->contentId
property is set based
on the value of the sys_language_uid
and other settings like
sys_language_mode
.
It is usually resolved internally by a middleware during bootstrap, taking site configuration setting into account. No manual interference necessary.
titleTagFunction¶
Property
titleTagFunction
Data type
Description
Passes the default <title>
tag content to this function.
No TypoScript parameters are passed though.
tx_[extension key with no underscores]_[*]¶
Property
tx_[extension key with no underscores]_[*]
Data type
array
Description
Configuration space for extensions. This can be used – for example – by plugins that need some TypoScript configuration, but that don't actually display anything in the frontend (i.e. don't receive their configuration as an argument from the frontend rendering process).
Example
config.tx_realurl_enable = 1
config.tx_myextension.width = 10
config.tx_myextension.length = 20
typolinkCheckRootline¶
Property
typolinkCheckRootline
Data type
Description
For every link created with "typolink" a check will be done to verify that the target page is within the current rootline of the site.
This option is always enabled since TYPO3 9. Setting it nevertheless will trigger a deprecation warning.
typolinkEnableLinksAcrossDomains¶
Property
typolinkEnableLinksAcrossDomains
Data type
Default
0
Description
This option enables to create links across domains using current domain's linking scheme.
If this option is not set, then all cross-domain links will be generated as
https://example.com/index.php?id=12345
(where 12345
is page id).
Setting this option requires that domains, where pages are linked,
have the same configuration for:
linking scheme (i.e. all use RealURL or CoolURI but not any mixture)
all domains have identical localization settings (
sys_language_XXX
directives)all domains have the same set of languages defined
Disclaimer: it must be understood that while link is generated to another domain, it is still generated in the context of current domain. No side effects are known at the time of writing of this documentation but they may exist. If any side effects are found, this documentation will be updated to include them.
typolinkLinkAccessRestrictedPages¶
Property
typolinkLinkAccessRestrictedPages
Data type
integer (page id) / keyword "NONE"
Description
If set, typolinks pointing to access restricted pages will still link to the page even though the page cannot be accessed. If the value of this setting is an integer it will be interpreted as a page id to which the link will be directed.
If the value is NONE
the original link to the page will be kept
although it will generate a page-not-found situation (which can of
course be picked up properly by the page-not-found handler and present
a nice login form).
See showAccessRestrictedPages for menu objects as well (similar feature for menus)
Example
config.typolinkLinkAccessRestrictedPages = 29
config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
Will create a link to page with id 29 and add GET parameters where the return URL and original page id is a part of it.
typolinkLinkAccessRestrictedPages_addParams¶
Property
typolinkLinkAccessRestrictedPages_addParams
Data type
Description
See typolinkLinkAccessRestrictedPages above.
USERNAME_substToken¶
Property
USERNAME_substToken
Data type
Default
<!--###USERNAME###-->
Description
The is the token used on the page, which should be substituted with the current username if a front-end user is logged in! If no login, the substitution will not happen.
USERUID_substToken¶
Property
USERUID_substToken
Data type
Description
The is the token used on the page, which should be substituted with the current users UID if a front-end user is logged in! If no login, the substitution will not happen.
This value has no default value and only if you specify a value for this token will a substitution process take place.
xhtmlDoctype¶
Property
xhtmlDoctype
Data type
Default
(same as config.doctype if set to a keyword)
Description
Sets the document type for the XHTML version of the generated page.
If doctype is set to a string then xhtmlDoctype
must be set to one of these keywords:
xhtml_trans for XHTML 1.0 Transitional doctype.
xhtml_strict for XHTML 1.0 Strict doctype.
xhtml_basic for XHTML basic doctype.
xhtml_11 for XHTML 1.1 doctype.
Example
This is an example to use MathML 2.0 in an XHTML 1.1 document:
config.doctype (
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
)
config.xhtmlDoctype = xhtml_11
xmlprologue¶
Property
xmlprologue
Data type
Description
If empty (not set) then the default XML 1.0 prologue is set, when the
doctype is set to a known keyword (e.g. xhtml_11
):
<?xml version="1.0" encoding="utf-8">
If set to one of the following keywords then a standard prologue will be set:
xml_10: XML 1.0 prologue (see above)
xml_11: XML 1.1 prologue
none: The default XML prologue is not set.
Any other string is used as the XML prologue itself.