Feature #71703
closedIntroduce ATagParams addGlobal TypoScript configuration
100%
Description
Hey guys,
I'm falling accross some issues with typolink ATagParams right now.
I added a tabindex via
config.ATagParams = tabindex="20"
to enable tabindex for all rendered links.
Obviously, not all links, generated by TypoScript, should have the same tabindex, so i defined typolink.ATagParams = tabindex="1" for a home link, for example. Unfortunately, the typoscript.ATagParams option did not behave like i expected it to. It doesn't replace the global config.ATagParams option, but prepends the new tabindex="1" to the global tabindex="20". Now I understood, that the ATagParams will not be parsed and split to its single params, so I searched for a way, to disable the global config.ATagParams option for this specific typolink, but the TypoScript configuration for typolink does not provide such an option. I took a look into the ContentObjectRenderer and the method getATagParams does indeed provide a parameter $addGlobal, to disable the global option, but in method typoLink, the parameter is unused. It would be great to disable this global option for single typolinks, via an option like this:
typolink{
ATagParams = tabindex="1"
doNotAppendGlobalATagParams = 1
}