Bug #81316
closedlinkhandler does not respect custom typolink configuration
0%
Description
When using a link field (e.g. header_link) in TypoScript the recordLinks (linkhandler configuration) don't respect any configuration.
Let's say I want to render a link out of the header_link field and give it a certain class.
10 = TEXT
10 {
value = foobar
typolink {
parameter.field = header_link
ATagParams = class="foobar"
}
}
When I set a regular link type (page, file, external url) I get the wanted result like
<a href="..." class="foobar">foobar</a>
But when I use linkhandler configured link type (e.g. for news) the ATagParams and everything else (like returnLast or something) are ignored.
<a href="...">foobar</a>
This makes them unusable since the link generation is not consistent over link types.
It might be strongly related to https://forge.typo3.org/issues/80896 and https://forge.typo3.org/issues/80895
Updated by Georg Ringer over 7 years ago
- Related to Bug #80896: TypolinkViewhelper with linkhandler ignores class attribute added
Updated by Georg Ringer over 7 years ago
- Related to Bug #80895: target and title attributes are not processed in frontend for record type links added
Updated by Georg Ringer over 7 years ago
You can solve this by using
<a href="{f:uri.typolink(parameter:link) -> f:format.htmlspecialchars()}" class="xxx">{header}</a>
Updated by Riccardo De Contardi over 7 years ago
- Category set to Site Handling, Site Sets & Routing
Updated by Jens Engelmann over 7 years ago
Georg Ringer wrote:
You can solve this by using
[...]
But this is only a fluid-based workaround. What about TypoScript?
Updated by Riccardo De Contardi over 6 years ago
Maybe solved with #81620 ? Or am I wrong?
Updated by Susanne Moog about 6 years ago
- Sprint Focus set to On Location Sprint
Updated by Ursula Klinger about 6 years ago
I have testet it with the header link. All attributes are shown. The bug should be fixed.
Updated by Markus Klein about 6 years ago
- Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added
Updated by Marc Hirdes about 5 years ago
If you set typolink.parameter = <myID> everything works. If you use any stdWrap function on the parameter, it won't work, e.g. typolink.parameter.field = <myField>