# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: E:\docs\NetBeansProjects\TYPO3_4-4-4\t3lib # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: class.t3lib_iconworks.php --- class.t3lib_iconworks.php Base (BASE) +++ class.t3lib_iconworks.php Locally Modified (Based On LOCAL) @@ -867,6 +867,28 @@ 'noIconFound' => ($row['_NO_ICON_FOUND'] ? TRUE : FALSE), ); + // Add custom status icons from TCA + if(is_array($tcaCtrl['status_fields'])) { + foreach($tcaCtrl['status_fields'] as $fldName => $fldConfig) { + if($tcaCtrl['enablecolumns'][$fldName]) { + // Extend default statuses + $status[$fldName] = ($row[$fldName] ? TRUE : FALSE); + + // Add configured icon to sprite + t3lib_SpriteManager::addSingleIcons(array( + $fldName => $fldConfig['icon'], + )); + + // Append name to global priority array. Make it last in queue. + array_push($GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'], $fldName); + + // Extend sprites class mapping + $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'][$fldName] = 'extensions--'.$fldName; + + } + } + } + \ No newline at end of file // Icon state based on "enableFields": if (is_array($tcaCtrl['enablecolumns'])) { $enCols = $tcaCtrl['enablecolumns'];