Bug #17580 » DynTabMenu_v1.patch
D:/workspace-typo3/typo3/typo3_src-svn/t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
$this->palettesRendered[$this->renderDepth][$table][$parts[2]] = 1;
|
||
}
|
||
$sField = $this->getSingleField($table,$theField,$row,$parts[1],0,$parts[3],$parts[2]);
|
||
if ($sField) { $sField.= $sFieldPal; }
|
||
if ($sField) {
|
||
$sField.= $sFieldPal;
|
||
$out_array_meta[$out_sheet]['elementFound'] = true;
|
||
}
|
||
$out_array[$out_sheet][$out_pointer].= $sField;
|
||
} elseif ($theField=='--div--') {
|
||
... | ... | |
$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
|
||
if ($parts[2] == "newline") {
|
||
$out_array_meta[$out_sheet]['newline'] = true;
|
||
}
|
||
}
|
||
} else { // Setting alternative title for "General" tab if "--div--" is the very first element.
|
||
$out_array_meta[$out_sheet]['title'] = $this->sL($parts[1]);
|
||
... | ... | |
if ($parts[2] && !isset($this->palettesRendered[$this->renderDepth][$table][$parts[2]])) {
|
||
// render a 'header' if not collapsed
|
||
if ($TCA[$table]['palettes'][$parts[2]]['canNotCollapse'] AND $parts[1]) {
|
||
$out_array[$out_sheet][$out_pointer].=$this->getPaletteFields($table,$row,$parts[2],$this->sL($parts[1]));
|
||
$palette = $this->getPaletteFields($table,$row,$parts[2],$this->sL($parts[1]));
|
||
} else {
|
||
$out_array[$out_sheet][$out_pointer].=$this->getPaletteFields($table,$row,$parts[2],'','',$this->sL($parts[1]));
|
||
$palette = $this->getPaletteFields($table,$row,$parts[2],'','',$this->sL($parts[1]));
|
||
}
|
||
$out_array[$out_sheet][$out_pointer].= $palette;
|
||
|
||
if (!empty($palette)) {
|
||
$out_array_meta[$out_sheet]['elementFound'] = true;
|
||
}
|
||
|
||
$this->palettesRendered[$this->renderDepth][$table][$parts[2]] = 1;
|
||
}
|
||
}
|
||
... | ... | |
foreach ($out_array as $idx => $sheetContent) {
|
||
$parts[] = array(
|
||
'label' => $out_array_meta[$idx]['title'],
|
||
'content' => '<table border="0" cellspacing="0" cellpadding="0" width="100%">'.
|
||
// Wrap content if at least one element (Field/Palette) exists
|
||
'content' => ($out_array_meta[$idx]['elementFound']? '<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();
|