[TYPO3] DAM imagefield -> straight edit image

joga email at welho.com
Thu Mar 22 15:34:20 CET 2007


There is no change to edit image data straight from content elements so 
here is a little fix how to you can get "pen"-shortcuticon after 
DAM-image name:

/typo3conf/ext/dam/
class.tx_dam_tcefunc.php
around line 519:
$thumbDescr = '<div class="nobr">'.$fileIcon.$title.'<br 
/>'.$row['file_name'].'</div>';

change this to:

$add_editpen_icon = '<a href="#" 
onclick="vHWin=window.open(\'/typo3/alt_doc.php?returnUrl=close.html&edit[tx_dam]['.$row['uid'].']=edit\',\'\',\'width=600,height=400,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();false;"><img 
title="Edit record" src="/typo3/gfx/edit2.gif" alt="" height="12" 
width="11"></a>';
$thumbDescr = '<div 
class="nobr">'.$fileIcon.$title.$add_editpen_icon.'<br 
/>'.$row['file_name'].'</div>';

Hope this helps someone else too!


More information about the TYPO3-english mailing list