Hi!
Ich hatte auch das Problem, dass der Wizard alle Elemente einschließlich Plugins anzeigte. Hier meine - zugegeben - nicht elegante, aber funktionierende Lösung:
In der Datei /typo3/sysext/cms/layout/db_new_content_el.php die Elemente nach Belieben auskommentieren. In meinem Falle habe ich nur die ersten vier zugelassen:
function wizardArray() {
global $LANG,$TBE_MODULES_EXT;
$wizardItems = array(
'common' => array('header'=>$LANG->getLL('common')),
'common_1' => array(
'icon'=>'gfx/c_wiz/regular_text.gif',
'title'=>$LANG->getLL('common_1_title'),
'description'=>$LANG->getLL('common_1_description'),
'params'=>'&defVals[tt_content][CType]=text'
),
'common_2' => array(
'icon'=>'gfx/c_wiz/text_image_below.gif',
'title'=>$LANG->getLL('common_2_title'),
'description'=>$LANG->getLL('common_2_description'),
'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=8'
),
'common_3' => array(
'icon'=>'gfx/c_wiz/text_image_right.gif',
'title'=>$LANG->getLL('common_3_title'),
'description'=>$LANG->getLL('common_3_description'),
'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=17'
),
'common_4' => array(
'icon'=>'gfx/c_wiz/images_only.gif',
'title'=>$LANG->getLL('common_4_title'),
'description'=>$LANG->getLL('common_4_description'),
'params'=>'&defVals[tt_content][CType]=image&defVals[tt_content][imagecols]=2'
),
/*
'common_5' => array(
'icon'=>'gfx/c_wiz/bullet_list.gif',
'title'=>$LANG->getLL('common_5_title'),
'description'=>$LANG->getLL('common_5_description'),
'params'=>'&defVals[tt_content][CType]=bullets'
),
'common_6' => array(
'icon'=>'gfx/c_wiz/table.gif',
'title'=>$LANG->getLL('common_6_title'),
'description'=>$LANG->getLL('common_6_description'),
'params'=>'&defVals[tt_content][CType]=table'
),
'special' => array('header'=>$LANG->getLL('special')),
'special_1' => array(
'icon'=>'gfx/c_wiz/filelinks.gif',
'title'=>$LANG->getLL('special_1_title'),
'description'=>$LANG->getLL('special_1_description'),
'params'=>'&defVals[tt_content][CType]=uploads'
),
'special_2' => array(
'icon'=>'gfx/c_wiz/multimedia.gif',
'title'=>$LANG->getLL('special_2_title'),
'description'=>$LANG->getLL('special_2_description'),
'params'=>'&defVals[tt_content][CType]=multimedia'
),
'special_3' => array(
'icon'=>'gfx/c_wiz/sitemap2.gif',
'title'=>$LANG->getLL('special_3_title'),
'description'=>$LANG->getLL('special_3_description'),
'params'=>'&defVals[tt_content][CType]=menu&defVals[tt_content][menu_type]=2'
),
'special_4' => array(
'icon'=>'gfx/c_wiz/html.gif',
'title'=>$LANG->getLL('special_4_title'),
'description'=>$LANG->getLL('special_4_description'),
'params'=>'&defVals[tt_content][CType]=html'
),
'forms' => array('header'=>$LANG->getLL('forms')),
'forms_1' => array(
'icon'=>'gfx/c_wiz/mailform.gif',
'title'=>$LANG->getLL('forms_1_title'),
'description'=>$LANG->getLL('forms_1_description'),
'params'=>'&defVals[tt_content][CType]=mailform&defVals[tt_content][bodytext]='.rawurlencode(trim('
# Example content:
Name: | *name = input,40 | Enter your name here
Email: | *email=input,40 |
Address: | address=textarea,40,5 |
Contact me: | tv=check | 1
|formtype_mail = submit | Send form!
|html_enabled=hidden | 1
|subject=hidden| This is the subject
'))
),
'forms_2' => array(
'icon'=>'gfx/c_wiz/searchform.gif',
'title'=>$LANG->getLL('forms_2_title'),
'description'=>$LANG->getLL('forms_2_description'),
'params'=>'&defVals[tt_content][CType]=search'
),
'forms_3' => array(
'icon'=>'gfx/c_wiz/login_form.gif',
'title'=>$LANG->getLL('forms_3_title'),
'description'=>$LANG->getLL('forms_3_description'),
'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'
),
*/
);
// PLUG-INS:
/*
if (is_array($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses'])) {
reset($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']);
while(list($class,$path)=each($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses'])) {
$modObj = t3lib_div::makeInstance($class);
$wizardItems = $modObj->proc($wizardItems);
}
}
*/
return $wizardItems;
}
}
Den letzten Absatz betitelt "Plugins" habe ich auch auskommentiert, damit die Plugins nicht angezeigt werden.
Hoffe, ich konnte jemandem Zeit ersparen. Wenn jemand eine elegantere Lösung hat, bitte vortragen!
Euer Red
PS: Das ist übrigens Version 3.6.0