Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.62 KB

File metadata and controls

58 lines (43 loc) · 1.62 KB

Link Handler

This extensions allows you to render a link via tx_rnbase_util_Link.

t3url

Renders an URL

{{
    t3url(
        {
            'destination' : $destination,
            'params' : {},
            'ts_path' : 'link.',
            'data' : optionalContentObjectData,
            'ts_config' : {"atagparams" : {"class" : "btn btd-default"}}
        }
    )
}}

In the $params array you can hand over some parameters which are added as get variables to your url

ts_path is relative to actionpath.template.ts. when using in plugins.

The $destination could contain one of the following values:

As an optional you can provide a tsPath to init the link via TypoScript. For more information @see initByTS() - function in \tx_rnbase_util_Link()

You can add an overrule ts config array as fourth parameter. You optionaly can assign this config aray as third parameter, if you don't need a config from the current tspath.

t3link

Renders a full qualified a tag.

{{
    'Label'|t3link(
        {
            'destination' : $destination,
            'params' : {'someparam':'somevalue'},
            'ts_path' : 'link.',
            'data' : optionalContentObjectData,
            'ts_config' : {"atagparams" : {"class" : "btn btd-default"}}
        }
    )
}}

The only difference to t3url is that you can add a label which is rendered within the a-Tag.