Project

General

Profile

Feature #17578 » newline_for_tabs_v1_(4.1.3).patch

Administrator Admin, 2007-10-23 23:01

View differences:

D:/workspace-typo3/typo3/typo3_src-svn/t3lib/class.t3lib_tceforms.php (working copy)
$this->pushToDynNestedStack('tab', $tabIdentStringMD5.'-'.($out_sheet+1));
$out_array[$out_sheet] = array();
$out_array_meta[$out_sheet]['title'] = $this->sL($parts[1]);
// Register newline for Tab
$out_array_meta[$out_sheet]['newline'] = ($parts[2] == "newline");
}
} else { // Setting alternative title for "General" tab if "--div--" is the very first element.
$out_array_meta[$out_sheet]['title'] = $this->sL($parts[1]);
......
'label' => $out_array_meta[$idx]['title'],
'content' => '<table border="0" cellspacing="0" cellpadding="0" width="100%">'.
implode('',$sheetContent).
'</table>'
'</table>',
// Newline for this tab/sheet
'newline' => $out_array_meta[$idx]['newline'],
);
}
D:/workspace-typo3/typo3/typo3_src-svn/typo3/template.php (working copy)
$index+=1; // Need to add one so checking for first index in JavaScript is different than if it is not set at all.
// Switch to next tab row if needed
if (!$foldout && $titleLenCount>$newRowCharLimit) { // 50 characters is probably a reasonable count of characters before switching to next row of tabs.
if (!$foldout && ($titleLenCount>$newRowCharLimit | ($def['newline'] === true && $titleLenCount > 0))) { // 50 characters is probably a reasonable count of characters before switching to next row of tabs.
$titleLenCount=0;
$tabRows++;
$options[$tabRows] = array();
(3-3/3)