[TYPO3-core] RFC: #6259 Disabling Tabs with no fields II

Malte Jansen mail at maltejansen.de
Tue Nov 20 10:26:12 CET 2007


Hi!

This is an SVN patch request.

Type: Bugfix (due to the discussion more a feature)

Bugtracker references:
http://bugs.typo3.org/view.php?id=6259

Branches:
Trunk

Problem:
Disabling Tabs with no fields does not work (or now removes empty tabs)
because the check (in template.php) is never true, because the parameter 
is never empty because of a table-wrap in the class.t3lib_tceforms.php
Due to removing empty the patch has change a little bit.

Solution:
$TCA[ctrl][divs2tabs] = 0 (off)
$TCA[ctrl][divs2tabs] = 1 (tabs removed)
$TCA[ctrl][divs2tabs] = 2 (tabs disabled)

Notes:
A small summary from the first thread:
Sometimes it usefull to disabled the tabs, because otherwise they would 
jump. Every author can choose, which is the best way to present his records.

In future you could build buisness models/logic, if the patch of 
conditional-required-field would also get to the core 
(http://bugs.typo3.org/view.php?id=6173) This would be a request from 
many authors...

This is a new thread, because the other one got too complex.


Cheers,

Malte
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disable_empty_tabs_v4_(doc_core_api).txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071120/708979ad/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disable_empty_tabs_v4_(trunk).patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071120/708979ad/attachment-0003.txt 


More information about the TYPO3-team-core mailing list