Issue Bug Closed

#80896TypolinkViewhelper with linkhandler ignores class attribute

Kai Tallafus 04/19/17, 14:39 updated 10/04/22, 14:16

Description

Linkhandler TypoScript definition:

config.recordLinks.products {
    forceLink = 0

    typolink {
        parameter = 9
        additionalParams.data = field:uid
        additionalParams.wrap = &tx_product_productlist[product]=|&tx_product_productlist[action]=show
        ATagParams.data = parameters : allParams
        useCacheHash = 1

    }
}

Fluidtemplate:

<f:link.typolink parameter="{teaser.primaryLink}" class="btn btn-yellow">....</f:link.typolink>

Output:

<a href="...">...</a>

How are we supposed to output such links with different classes?

ATagParams.data = parameters : allParams helps with links set and styled from RTE, but how can different classes be passed from typolink viewhelper?

Reviews 6