*** empty log message ***
authorKasper Skårhøj <kasper@typo3.org>
Mon, 2 Feb 2004 18:55:49 +0000 (18:55 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 2 Feb 2004 18:55:49 +0000 (18:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@129 709f56b5-9817-0410-a4d7-c38de5d9e867

TODO.txt
t3lib/class.t3lib_superadmin.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_pibase.php

index 88bbc99..9a18c62 100755 (executable)
--- a/TODO.txt
+++ b/TODO.txt
@@ -8,7 +8,7 @@ General:
 - Option: Turn of "onBlur" in backend (Message-ID: <001801c2a28c$bb020c70$963afea9@bla8kdvxpl8glk>)
 - Feature: "admin" can click a button which wipes out all record-lockings. (Message-Id: <200301281752.23246.mundaun@gmx.ch>)
 - Feature: Controlling access to function menu modules as well (thus we could have a user-module inside ?Template? which could edit the constants field)
-- Feature: Web >plugins -> to be a main module where people can place cmodules for their extension.
+- Feature: Web >plugins -> to be a main module where people can place modules for their extension.
 
 
 TCEmain:
@@ -92,6 +92,7 @@ TCEmain/TCEforms for FlexForms:
        - FlexForms cannot be possible if the record is not saved? No, should be ok, BUT a data source can of course not be referenced from another field since that fields value is NOT actually there! So only for fixed references to flex form definitions can this be done.
        - If you have a multiple selector field (or checkbox array) an array of objects could be forced to reflect exactly the fieldnames there 1-1 thus giving us configuration option possibilities per field! For newloginbox extension: You set up a selector box with multiple choice where you can select fields from the fe_users table to display. In an array of elements in the DS you configure that the VALUE of that field is dictating that the same number of objects should be shown for configuration of each field. A "hidden" value would point each object to which value from the field it was for! The same would be very useful for M-M lists of records.
        - Implement "<displayCond>EXT:templavoila:LOADED:true</displayCond>" for flexforms. (needed for mininews!!)
+       - Implement CSH for FF fields.
                
                
 TCEforms:
@@ -116,6 +117,7 @@ TCEforms:
                - Letting one selectorbox set another hidden fields value apart from its own? [USE: When selecting a template, that also sets the DS value! (Thus a template is always selected!)]
                - Exclude field selection better, in a tree?
                - set the width of the selector field 
+               - BUG: itemsArrayProcFunc only active IF there is an array! Shouldn't it be in any case?
        - GROUP type:
                - [file] allow the selection of files from the system to be added as REFERENCES, not copied! (Message-ID: <003f01c23503$8cdd69d0$55333bd4@comtech>, + notify "illuminatus")
                - In the thumbnail list add the Edit and view icons as in the good old days.
index e7f2d7e..68f5247 100755 (executable)
@@ -510,7 +510,7 @@ class t3lib_superadmin {
                                                // Set background color if mtime matches
                                        if ($maxMtime==$eInfo["mtime"]) {
                                                $this->extensionInfoArray["site"][$k][$extKey]["_highlight"]=1;
-                                               $bgCol = ' bgcolor="#eeeeee""';
+                                               $bgCol = $eInfo["dirtype"]=='link' ? ' bgcolor="#ffcccc"' : ' bgcolor="#eeeeee"';
                                        } else {
                                                $bgCol = ' style="color: #999999; font-style: italic;"';
                                        }
@@ -554,7 +554,7 @@ class t3lib_superadmin {
                                while(list($extKey,$eInfo)=each($extensions))   {
                                                // Set background color if mtime matches
                                        if ($eInfo["_highlight"])       {
-                                               $bgCol = ' bgcolor="#eeeeee""';
+                                               $bgCol = $eInfo["dirtype"]=='link' ? ' bgcolor="#ffcccc"' : ' bgcolor="#eeeeee"';
                                        } else {
                                                $bgCol = ' style="color: #999999; font-style: italic;"';
                                        }
@@ -612,6 +612,7 @@ class t3lib_superadmin {
 
                                        // Number of files:
                                $eInfo["numberfiles"]=count($fileArr);
+                               $eInfo["dirtype"]= filetype($path.$extKey);                     
 
                                        // Most recent modification:
                                $eInfo["mtime_files"]=$this->findMostRecent($fileArr,$extPath);
index 4efeb52..1b5ad6c 100755 (executable)
@@ -6151,7 +6151,7 @@ class tslib_cObj {
                                $content=$icon.$content;
                        } elseif ($conf['beforeLastTag']>0)     {
                                $cBuf = rtrim($content);
-                               $securCount=10;
+                               $securCount=30;
                                while($securCount && substr($cBuf,-1)=='>' && substr($cBuf,-4)!='</a>') {
                                        $cBuf = rtrim(ereg_replace('<[^<]*>$','',$cBuf));
                                        $securCount--;
index 55c4259..6900a9e 100755 (executable)
@@ -757,19 +757,20 @@ class tslib_pibase {
         * @param       string          Title for the edit icon.
         * @param       array           Table record row
         * @param       string          Table name
+        * @param       array           Conf array
         * @return      string          The processed content
         * @see tslib_cObj::editIcons()
         */
-       function pi_getEditIcon($content,$fields,$title='',$row='',$tablename='')       {
+       function pi_getEditIcon($content,$fields,$title='',$row='',$tablename='',$oConf=array())        {
                if ($GLOBALS['TSFE']->beUserLogin){
                        if (!$row || !$tablename)       {
                                $row = $this->internal['currentRow'];
                                $tablename = $this->internal['currentTable'];
                        }
-                       $conf=array(
+                       $conf=array_merge(array(
                                'beforeLastTag'=>1,
                                'iconTitle' => $title
-                       );
+                       ),$oConf);
                        $content=$this->cObj->editIcons($content,$tablename.':'.$fields,$conf,$tablename.':'.$row['uid'],$row,'&viewUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')));
                }       
                return $content;