Reputation: 543
I have to change the way TYPO3 outputs links. But only if I choose the style "internal-link-new-window" for a link in the RTE. In this case I would like to add certain parameters to the a tag. For example rel="..." data-i="..." and things like that.
Is that possible with typoscript? I did experiment a little but didn't succeed.
Upvotes: 0
Views: 1821
Reputation: 6133
You may have a look at my solution for adding conditional wraps around RTE links.
RTE - wrap link based on condition
The last part of the TypoScript (where the wrap is added to the RTE link) is like shown below:
lib.parseFunc_RTE.tags.link {
typolink.parameter.append < lib.parseFunc.tags.link.typolink.parameter.append
wrap < lib.parseFunc.tags.link.newWrap
}
Here you can add additional ATagParams
like shown below:
lib.parseFunc_RTE.tags.link {
typolink.parameter.append < lib.parseFunc.tags.link.typolink.parameter.append
typolink.ATagParams = rel="..."
wrap < lib.parseFunc.tags.link.newWrap
}
So if you use the whole TypoScript from my solution and extend the typolink with ATagParams
, then you are able to add additional parameters to links depending on certain classes.
Upvotes: 1