Project

General

Profile

Actions

Feature #71703

closed

Introduce ATagParams addGlobal TypoScript configuration

Added by Kevin Ditscheid about 9 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-11-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.5
Tags:
ATagParams typolink
Complexity:
Sprint Focus:

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
}

Actions

Also available in: Atom PDF