[TYPO3-dev] Version info in module web>list

Peter Niederlag niederlag at ikd01.de
Tue Jun 20 10:33:51 CEST 2006


Martin Kutschker schrieb:
> Hi!
> 
> Where is the code that displays "V" (blue background) or the current
> number of version (yellow background)?
> 
> The code generates inline style instead of a span with a class. I'd like
> to change that so it can be made skinable.

probably in typo3/class.db_list_extra.inc ?

------------------------

    860                     // Versioning:
    861                 if (t3lib_extMgm::isLoaded('version'))  {
    862                     $vers =
t3lib_BEfunc::selectVersionsOfRecord($table, $row['uid'], 'uid',
$GLOBALS['BE_USER']->workspace);
    863                     if (is_array($vers))    {   // If table can
be versionized.
    864                         if (count($vers)>1) {
    865                             $st = 'background-color: #FFFF00;
font-weight: bold;';
    866                             $lab = count($vers)-1;
    867                         } else {
    868                             $st = 'background-color: #9999cc;
font-weight: bold;';
    869                             $lab = 'V';
    870                         }
    871
    872                         $cells[]='<a
href="'.htmlspecialchars(t3lib_extMgm::extRelPath('version')).'cm1/index.php?table='.rawurlencode($table).'&uid='.rawurlencode($row['uid']).'"
style="'.htmlspecialchars($st).'">'.
    873                                 $lab.
    874                                 '</a>';
    875                     }
    876                 }


Hth,
peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *




More information about the TYPO3-dev mailing list