--- typo3/wizard_forms.php.old 2006-01-24 13:00:52.000000000 +0000 +++ typo3/wizard_forms.php 2006-01-24 13:09:03.000000000 +0000 @@ -423,7 +423,7 @@ // Field type selector: $opt=array(); $opt[]=''; - $types = explode(',','input,textarea,select,check,radio,password,file,hidden,submit,property,label'); + $types = explode(',','fieldset,input,textarea,select,check,radio,password,file,hidden,submit,property,label'); foreach($types as $t) { $opt[]=' '; @@ -440,7 +440,7 @@ } // Required checkbox: - if (!t3lib_div::inList('check,hidden,submit,label',$confData['type'])) { + if (!t3lib_div::inList('check,hidden,submit,label,fieldset',$confData['type'])) { $temp_cells[$LANG->getLL('forms_required')]=''; } @@ -455,7 +455,7 @@ if ($this->special=='formtype_mail' && $confData['type']=='file') { $confData['fieldname'] = 'attachment'.(++$this->attachmentCounter); } - if (!t3lib_div::inList('label',$confData['type'])) { + if (!t3lib_div::inList('label,fieldset',$confData['type'])) { $temp_cells[$LANG->getLL('forms_fieldName')]='doc->formWidth(10).' name="FORMCFG[c]['.(($k+1)*2).'][fieldname]" value="'.htmlspecialchars($confData['fieldname']).'" title="'.$LANG->getLL('forms_fieldName',1).'" />'; } @@ -497,7 +497,7 @@ $temp_cells[$LANG->getLL('forms_options')]=''; } elseif ($confData['type']=='check') { $temp_cells[$LANG->getLL('forms_checked')]=''; - } elseif ($confData['type'] && $confData['type']!='file') { + } elseif ($confData['type'] && $confData['type']!='file' && $confData['type']!='fieldset') { $temp_cells[$LANG->getLL('forms_default')]='doc->formWidth(15).' name="FORMCFG[c]['.(($k+1)*2).'][default]" value="'.htmlspecialchars($confData['default']).'" title="'.$LANG->getLL('forms_default',1).'" />'; } --- typo3/sysext/lang/locallang_wizards.xml.old 2006-01-24 13:06:21.000000000 +0000 +++ typo3/sysext/lang/locallang_wizards.xml 2006-01-24 13:06:44.000000000 +0000 @@ -52,6 +52,7 @@ + --- typo3/sysext/cms/tslib/class.tslib_content.php.old 2006-01-24 13:57:54.000000000 +0000 +++ typo3/sysext/cms/tslib/class.tslib_content.php 2006-01-24 14:28:09.000000000 +0000 @@ -1870,6 +1870,15 @@ $fieldCode=sprintf('', $confData['fieldname'], t3lib_div::deHSCentities(htmlspecialchars($value))); break; + case 'fieldset': + if ($fieldsetopen) { + $fieldCode=''; + } else { + $fieldCode=''; + } + $fieldCode.='
'.$confData['label'].''; + $fieldsetopen = true; + break; case 'label': $fieldCode = nl2br(htmlspecialchars(trim($parts[2]))); break; @@ -1913,7 +1922,7 @@ // Field: $fieldLabel = $confData['label']; - if ($conf['accessibility'] && trim($fieldLabel) && !preg_match('/^(radio|label|hidden|comment)$/',$confData['type'])) { + if ($conf['accessibility'] && trim($fieldLabel) && !preg_match('/^(radio|label|hidden|comment|fieldset)$/',$confData['type'])) { $fieldLabel = ''; } @@ -1943,6 +1952,9 @@ if ($confData['type']=='label' && $conf['LABEL.']['layout']) { $result = $conf['LABEL.']['layout']; } + if ($confData['type']=='fieldset') { + $result = '###FIELD###'; + } $result = str_replace('###FIELD###',$fieldCode,$result); $result = str_replace('###LABEL###',$labelCode,$result); $result = str_replace('###COMMENT###',$commentCode,$result); //RTF @@ -1950,6 +1962,11 @@ } } } + + if ($fieldsetopen) { + $content.='
'; + } + if ($conf['stdWrap.']) $content=$this->stdWrap($content, $conf['stdWrap.']);