Feature #6955
$uniqueKey does not guarantee uniqueness
| Status: | New | Start date: | 2010-03-22 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Votes: | 0 |
Description
Hello,
in tx_rgmediaimages_api::getVideoSwfObj (and perhaps some other places) the $uniqueKey that is mandatory for the SWFobject to work correctly, would not in any case stay unique.
In the mentioned function "getVideoSwfObj" the key is an md5 of the url of the video; the same videos on the same page will result on double "unique keys" and therefore inhibit the SWFobject from working correctly.
In the function, just f.x., "getRtmpSwfObj" the key is the md5 of the 'list' of the videos; same thing here.
My first idea was to simply use the cObj->data['uid'], meaning the UID of the tt_content element; but this will also not be enough when using TemplaVoilà's "linking" functionality.
A good thing could be just some kind oft3lib_div::shortMD5($GLOBALS['TSFE']->register['tx_rdmediaimages_fe.objCounter']++);
"What do you think"? :)
Best regards,
Adrian