CreateLink alt/title fix
Posted: Tue Jul 29, 2008 5:50 am
I noticed that the CreateLink() method improperly implements the alt/title text in the tag. What was happening was the alt text passed through the CreateLink() function (and passed to cms_module_CreateLink()) was just taking the passed text and sticking it in at the end of the tag. This doesn't work to get tooltips working, and it would probably fail standards compliance.
The fix:
In modform.inc.php, on line 464, change:
to
I added the "title" parameter there to address other browsers which do not activate tooltips for an alt tag (FF2/3 for instance).
With that fix, links created through CreateLink() show their alt/title properties properly
The fix:
In modform.inc.php, on line 464, change:
Code: Select all
$text .= ' ' . $addttext;
Code: Select all
$text .= " title=\"". $addttext ."\" alt=\"". $addttext ."\"";
With that fix, links created through CreateLink() show their alt/title properties properly
