[TYPO3-core] RFC: #11006: Bug: Tooltip for page path in Page/List module is missing

Francois Suter fsuter at cobweb.ch
Tue May 5 23:41:21 CEST 2009


Hi Masi,

> If $title equals $fullPath it will be cropped at 50 chars without a
> tooltip. Perhaps the tooltip feature can be moved to the cropping
> function to handle the situation more easily. Either in t3lib_div or
> perhaps directly into t3lib_cs.

Your comment made me go through the patch a second time and I saw that 
it's actually wrong. The test for cropping does not produce the same 
result as before. Furthermore the length test uses strlen() which is 
wrong (it should use t3lib_cs::strlen()).

What we could do is put the title through t3lib_div::fixed_lgd_cs() 
anyway and check if the return value begins with '...'. If this is the 
case, it has been cropped and the <abbr> must be added.

I'm reluctant to the suggestion of automating the addition of <abbr> by 
moving it into t3lib_div or t3lib_cs as it may not always be desirable. 
So that would mean either adding new methods or passing new parameters 
to existing methods.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-core mailing list