Project

General

Profile

Actions

Bug #24568

closed

Tabs in TCEForms always create new table-row after 50 characters

Added by Daniel Brün almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The TCA allows for displaying tabs to split up bigger forms by making use of the option dividers2tabs. These tabs are displayed in a row, unless the sum of characters of all tab-labels exceeds 50 characters. If this sum is bigger than 50, another row is created. This limit is hardcoded in class.t3lib_tceforms.php
Recently a new option has been added to the --div-- behavior, which now allows for manually forcing tabs into a new row (see 0006256).
This is not much of a help if you just want to have all tabs in a single row, which is very realistic, because screen-sizes increase every day.

There are four options to fix this behavior:

1. As every developer can now (since the above mentioned fix) decide after which tab a newline should occur, just increase newRowAfterChars from 50 to something huge (1000) in class.t3lib_tceforms.php:4377
This is not pretty and will lead to usability-issues in extensions that are sporting many, many tabs without manual newlines.

2. Create a new TCA-Option (tabsNewRowAfterChars) that is passed through TCEForms down to template.php
This would be the cleanest approach for developers. Users are not able to customize this behavior, though

3. Make this value configurable in user-settings. This way every user could chose the right setting for his/her own screen resolution

4. Make the tabs use all space there is and automatically flow into a second row. This would be the most flexible and compatible solution, which requires quite some changes in the rendering of the tabs. (right now: tables. For proper flowing this would need to be refactored to use ul-li)
(issue imported from #M17029)

Actions

Also available in: Atom PDF