Bug #77943
closed
VH f:link.typolink: A unique css class could be added twice to resulting class attribute
Added by Josef Glatz about 8 years ago.
Updated about 6 years ago.
Description
Problem/Description¶
Requirement: {data.header_link}
= t3://page?uid=15 - blocklink "My Title"
<f:link.typolink parameter="{data.header_link}" class="blocklink"></f:link.typolink>
The resulting class attribute class="blocklink blocklink"
Acceptance Criteria¶
- The resulting class attribute should not contain duplicate css classes
- This fix should also go into 7.6LTS and 6.2 LTS
- Subject changed from VH f:link.typolink: A class could be added twice to resulting class attribute to VH f:link.typolink: A unique css class could be added twice to resulting class attribute
- Description updated (diff)
- Priority changed from Should have to Could have
This is not as simple as it may seem: the method that generates the link receives both the input and the configuration array and the result is the duplicated class. If the ViewHelper is supposed to detect and avoid this it will require parsing the "parameter" (t3:// link) to detect all classes and filter values in "class" - and I'm not sure I'm a fan of that type of processing. If the ViewHelper is not supposed to do such parsing then this issue should be moved to whichever category typoLink (the core method, not the ViewHelper) belongs to. And I would personally argue that if this detection/filtering should happen then it should happen in the typoLink method - not the ViewHelper.
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF