Filters¶
t3_html¶
{{ html | t3_html(parseFuncTSPath = 'lib.parseFunc_RTE') }}
Parses HTML that was created with an rich text editor.
Arguments¶
- html
Type:
string
The HTML that should be processed. Normally this is the content that is stored in the database.
- parseFuncTSPath
Type:
string
| Default:'lib.parseFunc_RTE'
here you can define which setup should be used to transform the HTML content
t3_trans¶
{{ key | t3_trans(arguments = [], extensionName = null) }}
Translates the given translation key into the active language.
Arguments¶
- key
Type:
string
the key for the translation
- arguments
Type:
array
| Default:[]
the arguments that are replaced while translating
- extensionName
Type:
string
| Default:null
the name of the TYPO3 extension where the translation file is located
t3_typolink¶
{{ linkText | t3_typolink(
parameter,
target = '',
class = '',
title = '',
additionalParams = '',
additionalAttributes = [],
useCacheHash = false,
addQueryString = false,
addQueryStringMethod = 'GET',
addQueryStringExclude = '',
absolute = false
) }}
Creates a link from fields supported by the link wizard.
The linkText
will be wrapped within a link tag.
{# Create links from simple text. #}
{{ 'read_more' | t3_trans | t3_typolink('t3://record?identifier=123') }}
{# Create links around complex HTML structures. #}
{% filter t3_typolink('t3://record?identifier=123', target='_blank') %}
<img src="read_more.png alt="read more"/>
{% endfilter %}
Arguments¶
- linkText
Type:
string
the text that should be wrapped in an <a>-tag
- parameter
Type:
string
stdWrap.typolink
style parameter string.- target
Type:
string
| Default:''
Specifies where to open the linked document (e.g.
_blank
).- class
Type:
string
| Default:''
class added to the
<a>
-tag- title
Type:
string
| Default:''
Title attribute of the
<a>
-tag. It can give more information to the user in form of a tooltip.- additionalParams
Type:
string
| Default:''
This is parameters that are added to the end of the URL. This must be code ready to insert after the last parameter. See: TypoLink documentation
- additionalAttributes
Type:
array
| Default:[]
additional HTML attributes that are added to the
<a>
-tag- useCacheHash
Type:
bool
| Default:false
If set, the additionalParams list is exploded and calculated into a hash string appended to the URL, like “&cHash=ae83fd7s87”. See: TypoLink documentation
- addQueryString
Type:
bool
| Default:false
Adds the query string to start of the link. See: TypoLink documentation
- addQueryStringMethod
Type:
string
| Default:'GET'
If set to GET or POST, then the parsed query arguments (GET or POST data) will be used. See: TypoLink documentation
- addQueryStringExclude
Type:
string
| Default:''
List of query arguments to exclude from the link. Typical examples are
L
orcHash
. See: TypoLink documentation- absolute
Type:
bool
| Default:false
Forces links to internal pages to be absolute, thus having a proper URL scheme and domain prepended. See: TypoLink documentation