Bug #18380

TCEForms extraFormHeaders do not work with docheaders

Added by Jeff Segars about 13 years ago. Updated almost 11 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


TCEForms has the possibility to set extraFormHeaders that are included above the editing form. In templates/alt_doc.html, the ###EXTRAHEADER### is included as part of typo3-docheader so that content from the editing form always scrolls behind it.

The problem is that the docbody has an absolute position so adding extra rows to the header does not push the actual editing form down.

I can see two options to work around this...
#1 - Move ###EXTRAHEADER### outside the docheader so that it scrolls behind the header just like other content
#2 - There's already Javascript code in place for IE to dynamically calculate the height and fix scrolling problems so we could remove the absolute positioning and let the Javascript run for all browsers.

I'm attaching a screenshot and a sample extension that adds extra headers to all records.

(issue imported from #M7768)


extraHeaders.png (42.6 KB) extraHeaders.png Administrator Admin, 2008-03-05 21:04
T3X_test_docheader-0_0_0-z-200803051409.t3x (2.73 KB) T3X_test_docheader-0_0_0-z-200803051409.t3x Administrator Admin, 2008-03-05 21:07
7768.diff (535 Bytes) 7768.diff Administrator Admin, 2008-03-18 14:52

Updated by Steffen Kamper about 13 years ago

Hi Jeff,

i can confirm this. The problem is here:

div#typo3-docbody {
width: 98%;
padding: 2% 0% 2% 2%;
overflow: auto;
top: 51px;
bottom: 0;
position: absolute;
z-index: 2;

You see that the div is alwas 51px from top, ignoring height of docheader.

I solved it in the pagetree filter-hiding with a additional marker in the docbody-div for inline style adding the needed margin.


Updated by Steffen Kamper about 13 years ago

I think best solution is to move the extrarow to typo3-docbody


Updated by Steffen Kamper about 13 years ago

try this in alt_doc.html:

<div id="typo3-docbody">


Updated by Steffen Kamper about 13 years ago

btw - same problem when using debug.


Updated by Jeff Segars about 13 years ago

Committed to 4.2.

Also available in: Atom PDF