Skip to content

Commit

Permalink
[TASK] Support unassigned content areas
Browse files Browse the repository at this point in the history
The TYPO3 core allows to have columns/content areas that are not assigned to a column
in the tt_content table/colPos column. These unassigned columns are displayed as a shaded
area and do not allow to create content. This is helpful to represent areas in the backend
which are visible in the frontend but controlled by other means like plugins, banners, or
hardcoded content.

To mark a content area as unassigned it is enough to not provide a colPoskey in the backend
layout configuration. Previously 0 would have been assigned as a default, which might not be
correct or wanted, too.
  • Loading branch information
irnnr authored and NamelessCoder committed Nov 28, 2014
1 parent c82b035 commit 6c92d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Backend/BackendLayoutDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function getBackendLayoutConfiguration($pageUid) {
}
$columns[$key] = array(
'name' => $columnName,
'colPos' => $column['colPos'] >= 0 ? $column['colPos'] : $config['colCount']
'colPos' => $column['colPos'] >= 0 ? $column['colPos'] : NULL
);
if ($column['colspan']) {
$columns[$key]['colspan'] = $column['colspan'];
Expand Down

0 comments on commit 6c92d8a

Please sign in to comment.