[Typo3] Blank Space - Further into space!

Alex Heizer alex at tekdevelopment.com
Sun Oct 23 12:29:15 CEST 2005


Hi Stephen,

This is because there is a default table that wraps the page header. On 
the front page, you don't have a page header, and so it displays an 
empty table. On the inside pages, there is something inside the table, 
making it appear correct since there now is no empty table. The code 
below replaces the table on the first page of the tree (the "root" page) 
and leaves the inside pages as they are.

You can put the code between the "snips" into your Setup field in your 
main page Template, making sure that none of the lines wrap. Important, 
on line 3, replace the # after "PIDupinRootline" with the actual page ID 
number of the root page. There are much better ways to do this now that 
you'll learn as you get more experience with TYPO3:

<----snip---->

page.10.1 >

[PIDupinRootline = #]
page.10 {
  1 = COBJ_ARRAY

  1 {

    wrap = <tr><td><img src="clear.gif" width=1 vspace=39 height=1 border=0></td><td valign="top"> | </td></tr>
    1 = HTML
    1.value = <table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="clear.gif" width=1 hspace=10 vspace=7 height=1 border=0></td><td><img src="clear.gif" width=1 hspace=40 height=1 border=0></td><td><img src="clear.gif" width=1 height=1 border=0></td></tr><tr><td></td><td colspan=2>
 

    5 = TEXT

    5.data = levelTitle:1

    5.wrap = {$page.L0.titleWrap}

 

    10 = HTML

    10.value = </td></tr><tr><td></td><td></td><td>

 

    15 = TEXT

    15.data = levelTitle:2

    15.wrap = {$page.L1.titleWrap}

    20 = HTML

    20.value = </td></tr></table>

  }
}

<----snip---->

Stephen Page wrote:

>Have you looked back over the last few digests or at the list of  
>emails that have "Blank Space" in the header?
>
>If all of you had spent the same amount of effort on just telling me  
>WHERE to go to fix the problem I would be a happy bunny with a  
>working website, telling everyone what a great product Typo3 really is!
>
>I did mention in my original post that I wanted the fix as a  
>TEMPORARY measure until I could learn HOW to fix the problems myself  
>or until I had learnt how to make a template from scratch.
>
>I have had it suggested that the faulty HTML is stored in the  
>database but I cant find it.
>
>If anyone can help with the ACTUAL problem and help me find and  
>eliminate this particular piece of bad HTML I will love you forever,  
>well at least today anyway!
>
>The reason I originally posted my question was because this blank  
>space appears ONLY on the main page and not any of the sub pages  
>which I thought was unusual, you would assume any template file would  
>have the same effect on the sub pages. I am unaware if the template  
>file has seperate areas for main and sub pages as I cannot find it or  
>a way to edit it.
>
>So once again and this time for the last time can anyone help me fix  
>this until I get the knowledge to rip this bad template file out and  
>replace it?
>
>And the name is Steve not Vincent! :-)
>
>Steve
>
>P.S. An apology for any messages I have sent with a header saying:  
>Re: Typo3-english Digest, Vol XX, Issue XXX, In my haste I forget to  
>rename the header, the only time I normally use the reply function is  
>to email people back, friends, colleagues and I never change the  
>Subject field so I may have forgotten to change it. SORRY I will try  
>and remember in future!
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
>  
>




More information about the TYPO3-english mailing list