[TYPO3] Auto-parser problem

Onno Schuit o.schuit at solin.nl
Sat Jan 7 12:06:05 CET 2006


Hi Jasper,


Exactly what TypoScript do you use to work on the body tag? What you've 
shown us, is how you mark the body tag (namely, with 'DOCUMENT_BODY').

But you should also have something like:


### <TypoScript code snippet>

temp.mainTemplate = TEMPLATE
temp.mainTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
    template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <body>-tags
    workOnSubpart = DOCUMENT_BODY

### </TypoScript code snippet>


Hope this is enough of a hint. If not, please show us your entire 
TypoScript code, so maybe we can pinpoint the problem.


Cheers,
Onno




Jasper wrote:
> 
>   Hi !
> 
>   Maybe someone can help me out here - I'm completly lost :(
> 
>   Somehow auto-parser doesn't parse/see the whole template. When I pass 
> the template to auto-parser like this:
> 
> plugin.tx_automaketemplate_pi1 {
>     # Read the template file:
>   content = FILE
>   content.file = fileadmin/templates/main/index.html
> 
> and command to wrap the BODY tag
> 
>   elements {
>     BODY.all = 1
>     BODY.all.subpartMarker = DOCUMENT_BODY
> 
> somehow (this is a part that I can not understand) the <body> tag 
> inserted at 2/3 of the original html file -> WOW and then I have about 
> 1/3 of html text until actually close body tag </body>
> 
>   Is thereś some kinda page-size limit ? or something ?
> 
> 
> This is a 'view-source' from this page:
> 
> .
> .
> .
>         </tr>
>     </table>
>     <!--###DOCUMENT_BODY### end --></body>
>     <td valign="top" width="59" height="100%" 
> background="fileadmin/templates/main/images/l02.gif"><img 
> src="fileadmin/templates/main/images/right.gif">
>         </td>
> </tr>
> 
> <tr>
>     <td colspan="4" id="footer"><!--###footer### begin -->
>         <table cellpadding="0" cellspacing="0" border="0">
>             <tr>
> (cuted some text here)
>         </table>
>     <!--###footer### end --></td>
>     </tr>
> </table>
> </body>   <--- Here Actually body tag !!!!!!!!!!!
> </html>
> 
> 
> As you can see for some strange reasong the </body> tag just inserted at 
> the 2/3 of html page. On the other hand I see that "footer" class TD tag 
> correctly wraped
> 
> What I can do about ? What is the problem ?
> 



More information about the TYPO3-english mailing list