Project

General

Profile

Bug #24094 » patch_rfc_16434_V2.diff

Administrator Admin, 2010-11-17 12:10

View differences:

typo3/sysext/cms/layout/class.tx_cms_layout.php Locally Modified (Based On LOCAL)
// Add new-icon link, header:
$newP = $this->newContentElementOnClick($id,$key,$lP);
$colTitle = t3lib_BEfunc::getProcessedValue('tt_content','colPos',$key);
/**
* @mficzel
* @todo get complete title from tca inclusive ts config manipulations by user func and tsConfig
*/
$tcaItems = t3lib_div::callUserFunction( 'EXT:cms/class.tx_cms_be_layout.php:tx_cms_be_layout->getColPosListItemsParsed' , $id, $this );
foreach( $tcaItems as $item) {
if ( $item[1] == $key) {
......
// add colgroups
$colCount = intval($parser->setup['be_layout.']['colCount']);
$rowCount = intval($parser->setup['be_layout.']['rowCount']);
$grid .= '<colgroup>';
for ($i = 0; $i < $colCount; $i++) {
$grid .= '<col style="width:'.(100/$colCount).'%"></col>';
......
$grid .= '</colgroup>';
// cycle through rows
if(count($parser->setup['be_layout.']['rows.'])) {
foreach ($parser->setup['be_layout.']['rows.'] as $rowConfig) {
for ($row = 1; $row <= $rowCount; $row++) {
$rowConfig = $parser->setup['be_layout.']['rows.'][$row.'.'];
if (!isset($rowConfig)) continue;
$grid .= '<tr>';
// and colummns
if(count($rowConfig['columns.'])) {
foreach ($rowConfig['columns.'] as $columnConfig) {
for ($col = 1; $col <= $colCount; $col++) {
$columnConfig = $rowConfig['columns.'][$col.'.'];
if (!isset($columnConfig)) continue;
// which tt_content colPos should be displayed inside this cell
$columnKey = intval($columnConfig['colPos']);
......
(isset($columnConfig['colspan']) ? ' colspan="'.$columnConfig['colspan'].'"' : '').
(isset($columnConfig['rowspan']) ? ' rowspan="'.$columnConfig['rowspan'].'"' : '').
' class="t3-gridCell t3-page-column t3-page-column-' . $columnKey .
(isset($columnKey) ? ' t3-gridCell-disabled' : '') .
(isset($columnConfig['colspan']) ? ' t3-gridCell-width'.$columnConfig['colspan'] : '') .
(isset($columnConfig['rowspan']) ? ' t3-gridCell-height'.$columnConfig['rowspan'] : '').'">';
$grid .= $head[$columnKey] . $content[$columnKey] . '</td>';
}
}
$grid .= '</tr>';
}
}
$out .= $grid.'</table></div>';
}
typo3/sysext/cms/layout/db_layout.php Locally Modified (Based On LOCAL)
}
// If only one column found, display the single-column view.
if (count($colList)==1) {
if (count($colList)==1 && !$this->MOD_SETTINGS['function']===4) {
$dblist->tt_contentConfig['single'] = 1; // Boolean: If set, the content of column(s) $this->tt_contentConfig['showSingleCol'] is shown in the total width of the page
$dblist->tt_contentConfig['showSingleCol'] = current($colList); // The column(s) to show if single mode (under each other)
}
(2-2/2)