PROBLEM: The DAM extension ver. 1.0.14 showed a bug installed in Typo3 4.2.3: on the Media->File module, whenever the table on the right frame was used for navigation purposes and a directory was clicked to access its content, a 404 error was issued stating that the directory did not exist.
SOLUTION: The problem was related to the fact that the SLCMD GET-variable contained an absolute path instead of a relative one (relative to the root of the website I mean). The solution consisted in correcting the path before wrapping the directory links with it. Therefore the file class.tx_dam_listbase.php has been modified: at the beginning of the function linkWrapDir (at line 874) the follwing lines of code have been inserted:
if(t3lib_div::_GET('SLCMD')) {
$old_slcmd = t3lib_div::_GET('SLCMD');
$new_slcmd = $old_slcmd;
if ($old_slcmd['SELECT']['txdamFolder']) {
$abs_path = key($old_slcmd['SELECT']['txdamFolder']);
$rel_path = tx_dam::file_relativeSitePath($abs_path);
$rel_arr = array($rel_path => 1);
$new_slcmd['SELECT']['txdamFolder'] = $rel_arr;
}
t3lib_div::_GETset($new_slcmd,'SLCMD');
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment