* Added "General Plugin" to content elmeent wizard list.
authorKasper Skårhøj <kasper@typo3.org>
Thu, 1 Apr 2004 08:27:07 +0000 (08:27 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Thu, 1 Apr 2004 08:27:07 +0000 (08:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@177 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/index.php
typo3/sysext/cms/layout/db_new_content_el.php
typo3/sysext/cms/layout/locallang_db_new_content_el.php
typo3/sysext/cms/tbl_tt_content.php

index b404728..8993d6a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-04-01  Kasper Skårhøj,,,  <kasper@typo3.com>
 
+       * Added "General Plugin" to content elmeent wizard list.
+
+2004-04-01  Kasper Skårhøj,,,  <kasper@typo3.com>
+
        * Fixed SSL problem and many other minor things
 
 2004-03-31  Kasper Skårhøj,,,  <kasper@typo3.com>
index ecb93fa..bdf0c5d 100755 (executable)
@@ -1381,17 +1381,17 @@ EXTENSION KEYS:
                                                        }
                                                }
 
-                                                       // Show details:
-                                               $content = $this->extInformationArray($extKey,$list[$extKey]);
-                                               $this->content.=$this->doc->spacer(10);
-                                               $this->content.=$this->doc->section('Details:',$content,0,1);
-
                                                                // Config:
                                                if (@is_file($absPath.'ext_conf_template.txt')) {
                                                        $this->content.=$this->doc->spacer(10);
                                                        $this->content.=$this->doc->section('Configuration:','(<em>Notice: You may need to clear the cache after configuration of the extension. This is required if the extension adds TypoScript depending on these settings.</em>)<br /><br />',0,1);
                                                        $this->tsStyleConfigForm($extKey,$list[$extKey]);
                                                }
+                                               
+                                                       // Show details:
+                                               $content = $this->extInformationArray($extKey,$list[$extKey]);
+                                               $this->content.=$this->doc->spacer(10);
+                                               $this->content.=$this->doc->section('Details:',$content,0,1);
                                        break;
                                        case 'upload':
                                                $TER_CMD = t3lib_div::_GP('TER_CMD');
index 0a3f573..65e661a 100644 (file)
@@ -489,6 +489,12 @@ Contact me: | tv=check | 1
                                'params'=>'&defVals[tt_content][CType]=login'
                        ),
                        'plugins' => array('header'=>$LANG->getLL('plugins')),
+                       'plugins_1' => array(
+                               'icon'=>'gfx/c_wiz/user_defined.gif',
+                               'title'=>$LANG->getLL('plugins_1_title'),
+                               'description'=>$LANG->getLL('plugins_1_description'),
+                               'params'=>'&defVals[tt_content][CType]=list'
+                       ),
                );
 
 
@@ -530,4 +536,4 @@ foreach($SOBE->include_once as $INC_FILE)   include_once($INC_FILE);
 
 $SOBE->main();
 $SOBE->printContent();
-?>
\ No newline at end of file
+?>
index 181f38f..be253f1 100755 (executable)
@@ -35,6 +35,8 @@ $LOCAL_LANG = Array (
                'forms_3_title' => 'Login form',
                'forms_3_description' => 'Login/logout form for website users. This is used to password protect pages. You must create website users and groups for this to work.',
                'plugins' => 'Plugins',
+               'plugins_1_title' => 'General Plugin',
+               'plugins_1_description' => 'If you want to insert a plugin which cannot be found among the options below, just select this element type and you can select your specific plugin in a selector box afterward.',
        ),
        'dk' => Array (
                'sel1' => 'Vælg hvilken slags sideindhold du ønsker at oprette:',
@@ -612,4 +614,4 @@ $LOCAL_LANG = Array (
        'ua' => Array (
        ),
 );
-?>
\ No newline at end of file
+?>
index 076e279..c824380 100755 (executable)
@@ -643,9 +643,10 @@ $TCA['tt_content'] = Array (
                        'label' => 'LLL:EXT:cms/locallang_ttc.php:list_type',
                        'config' => Array (
                                'type' => 'select',             
-                               'items' => Array (      
+                               'items' => Array (
+                                       Array('','')
                                ),
-                               'default' => '0'
+                               'default' => ''
                        )
                ),
                'select_key' => Array (
@@ -659,7 +660,7 @@ $TCA['tt_content'] = Array (
                        )
                ),
                'table_bgColor' => Array (
-                       'exclude' => 1, 
+                       'exclude' => 1,
                        'label' => 'LLL:EXT:cms/locallang_ttc.php:table_bgColor',
                        'config' => Array (
                                'type' => 'select',             
@@ -929,6 +930,7 @@ $TCA['tt_content'] = Array (
                                                        'showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, --div--, list_type;;;;5-5-5, layout, select_key, pages;;12',
                                                        'subtype_value_field' => 'list_type',
                                                        'subtypes_excludelist' => Array(
+                                                               '' => 'layout,select_key,pages',        // When no plugin is selected.
                                                                '3' => 'layout',
 //                                                             '4' => 'layout',        // List type forum
                                                                '2' => 'layout',