[TYPO3-core] RFC: Bug 5053: imgNameNotRandom on TMENU/GMENU could break rollover behaviour

Oliver Hader oh at inpublica.de
Sat Jul 7 14:40:27 CEST 2007


FYI: Committed to SVN
* TYPO3_4-1 (rev. 2390)
* Trunk (rev. 2391)

olly


Michael Stucki schrieb:
> I didn't test it, but looked at the code which seems pretty logical.
> The functionality has been tested by Ralf Hettinger (see bugtracker) and
> you, so go ahead!
> 
> - michael
> 
> Oliver Hader schrieb:
>> This is a SVN patch request.
>>
>> Problem:
>> Graphical navigation menus set the HTML "name" attribute normally to a
>> value like "<target-page-id>_<md5-part>_<item-index>", e.g. like
>> "img16_66e5_1" or "img17_66e5_2".
>> The property "imgNameNotRandom", available for GMENU and TMENU, removes
>> the md5-part and the item-index. Result: "img16", "img17", ...
>> The name attribute is necessary for rollover effects to work correctly.
>> But if all items point to the same page, e.g. for disposal in a language
>> menu, all items have the same name attribute and thus it breaks the
>> rollover behaviour.
>>
>> Solution:
>> If the property "imgNameNotRandom" is set, include the item-index, e.g.
>> "img16_0", "img16_1", etc.
>>
>> Comments:
>> Fix by Ralf Hettinger
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=5053
>>
>> Branch: TYPO3_4-0 & Trunk
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list