[TYPO3] Auto-parser problem

Jasper jasper22 at xaker.ru
Sat Jan 7 16:06:39 CET 2006


Yes - there's some limit problem with auto-parser: Just when I deleted 
about 10 lines from template html the 'closing' <body> tag started to 
work. No matter what I deleted, no matter what classes, id was there, no 
matter how close this was to </body> tag - just delete some lines and it 
start to work.....

Hmmmmmmm....... Does anyone know where this limit set ?

P.S. The strange is that autoparser is not just adding the <!--###tag### 
ends--> line but it adding the HTML tag itself </body> in the place 
where it's not suppose to be.....


P.S. Original html file that not working have 54 lines
      'Working' html file size is: 48 lines

Is there anything that I can do about it ?


Onno Schuit wrote:
> 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