[TYPO3-core] RFC: #8014: remove empty tabs from TCEForms

Steffen Kamper steffen at sk-typo3.de
Sun Apr 6 23:14:09 CEST 2008


Hi Malte,

"Malte Jansen" <mail at maltejansen.de> schrieb im Newsbeitrag 
news:mailman.1.1207497853.23892.typo3-team-core at lists.netfielders.de...
> Hi Benni,
>
> Benjamin Mack schrieb:
>> Hey Malte,
>>
>> thanks a lot for your input.
>>
>> What I mentioned in my other post is that I think we should have a
>> different treatment of dynTabMenus where they occur.
>>
>> a) the default behaviour in template.php is to "disable", not to
>> "remove" empty tabs. We should not change this because it would break
>> backwards compatibility. We experienced problems e.g. in the taskcenter.
>
> The default behavior is set to disableTabs in dynTabMenus of
> template.php. It's set with the last parameter which is set to "2".
>
>> b) BUT we could set the behaviour for TCEforms specifically, where
>> disabled empty tabs do not make a lot of sense. So it would be the best
>> to change all occurences in the tables.php of the core to dividersToTabs
>> = 2, and that would solve all problems then, right?
>
> In the TCEforms the default behavor WAS removing empty tabs ("1"). Due
> to a patch it does not work anymore.
>
i think it's a bug there. If you use the function getDynTabMenu with an 
uninitialized value or with 0 it hasn't the default behaviour, so i would 
change it there:
function getDynTabMenu($menuItems,...,$dividers2tabs=1) {
       // ensure to remove empty tabs if value is 0
   $dividers2tabs = intval($dividers2tabs)==0 ? 1 : intval($dividers2tabs);

So it works for all calls in same manner.
I included a patch with this change.

btw - you don't need to shout loud ;-) I didn't remembered this change and 
fixed with debugging only. So it's good to have this list, and if something 
goes wrong it will be changed.

vg  Steffen



begin 666 8014_v2.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7W1C969O<FUS+G!H< T*/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/0T*+2TM('0S;&EB+V-L87-S+G0S;&EB7W1C969O
M<FUS+G!H< DH<F5V:7-I;VX@,S4S-"D-"BLK*R!T,VQI8B]C;&%S<RYT,VQI
M8E]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87DH)&UE;G5)=&5M<RDI"7L*( H@"0D)
*"2\O($EN:70Z"@``
`
end



More information about the TYPO3-team-core mailing list