[TYPO3] unwanted extra </div> tag in template - Templavoila

Christopher Torgalson bedlamhotel at gmail.com
Mon Feb 18 13:32:47 CET 2008


Hi,

Karl Wallace wrote:
> Hi all
>  
> I'm experiencing a problem with my template and Templavoila. It won't
> validate because an extra </div> tag is being appended to the bottom of
> my template code (but before the end body tag). 
>  
> e.g
>  
> <div> Content </div>
> </div>
> </body>
>  
> instead of 
>  
> <div> Content </div>
>  
> </body>
>  
> I've tried putting in an extra opening <div> tag in the template source
> to see if that would complete the div but that didnt work. In fact when
> I did that, another </div> tag was added.
> No matter what alterations I made to the template source code, an
> additional </div> is displayed.
>  
> I have viewed the source of the template through the filelist option in
> typo3 to make sure that the problem was not there.
>  
> I've read the posting to this mailing list in the link below.
> http://www.typo3-jack.net/typo3-project-templavoila-lists-netfielders-de
> /7990-typo3-templavoila-strange-div-mapping.html
>  
> I'm not sure my problem is the same as when I copy  the output of my
> page into a new html page and remove the extra </div> tag by hand, the
> rest of the content validates.
>  
> Does anyone know what might be causing this and how it can be fixed?


It sounds very much like you have an extra opening div tag in the 
template. Validate the template code and see if there's anything that 
needs fixing--TV is fussy about valid markup.

-- 
Christopher Torgalson / bedlamhotel at gmail.com


More information about the TYPO3-english mailing list