[TYPO3-dev] Error-Messages in ListView of new Backend

Stefan Geith typo3dev2008.nospam1 at geithware.de
Fri Apr 11 14:15:36 CEST 2008


Steffen Kamper schrieb:
> "Stefan Geith" <typo3dev2008.nospam1 at geithware.de> schrieb im Newsbeitrag 
> news:mailman.5002.1207911967.3430.typo3-dev at lists.netfielders.de...
>> Steffen Kamper schrieb:
>>> ...
>>>> <snip>
>>>>     if (!is_array($TCA[$table]['columns'])) {
>>>>         echo "ERROR: Table '$table' - no columns available! <br />";
>>>>     } else {
>>>>         foreach($TCA[$table]['columns'] as $fN => $fieldValue) {
>>>>     ...
>>>> </snip>
>>>> I think even this unstyled/untranslated message is better than a 
>>>> php-error - right ?
>>>>
>>>> -
>>> please no echo's!
>>>
>>> The general problem is that any warnings and debug messages are printed 
>>> out. This is an "old" problem of the docheaders because there are 
>>> positioned absolute and not accessible any more if any Message is printed 
>>> out on top.
>>>
>>> Solution would be to buffer the output and put it in EXTRAHEADER
>> How does this work ?
>> I mean: how do I get text into EXTRAHEADER ?
>> I'd write a patch for this, if I knew where/how to put the output ...
>>
>> -
>>
> 
> i didn't digged into yet, but principe should be:
> start buffering use ob_starts()
> in template.php look for the EXTRAHEADER-Marker and append buffer if 
> something in it
> 
> look in corelist, jeff made a patch for extraheader information and an 
> example extension how to use

Seems, that $tceforms is not available from class.db_list.inc.
Or could I simply not find it ?


Maybe it could work this way:
- Global Array for (error-)messages, that should
   go into 'extraFormHeaders'
- function extraFormHeaders() in alt_doc.php adds them
   to the output ...

-
Stefan





More information about the TYPO3-dev mailing list