[TYPO3] Removing only automated html comments, output others

Edwin Blokker a.stoutjesdijk at chello.nl
Mon Jul 16 14:36:32 CEST 2007


Thanks a lot, Ben and Patrick!


Benjamin Todd schreef:
> Hi Edwin,
> 
> To remove the ugly Typo3 comments you need to put this TypoScript in
> your page template:
> 
> # Stop output of content element comment limiters
> page.config.disablePrefixComment = 1
> 
> Extra extensions are not needed once this line is added.
> 
> HTH
> 
> Ben :)
> 
> ------------------------
> Benjamin Todd
> Web Developer
>  
> b.todd at emnet.co.uk
> EMNET, PO Box 559, Nottingham, NG1 3LB
> Tel:  +44 (0)115 956 8260
> Fax: +44 (0)115 956 8264
>  
> www.emnet.co.uk
> Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
> Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS
>  
> www.emnetsolutions.co.uk
> Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
> office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS
> 
> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Edwin
> Blokker
> Sent: 10 July 2007 05:54 PM
> To: typo3-english at lists.netfielders.de
> Subject: [TYPO3] Removing only automated html comments, output others
> 
> Hi,
> 
> Typo3 by default outputs a lot of ugly HTML comment code. To remove 
> this, I use the Source Optimization extension, which removes all HTML 
> comments in the <body>. It works great, but the problem is that I need 2
> 
> empty HTML comments in my output for my layout (to tell IE that a 
> particular div is actually empty..). These get removed too.
> 
> Is there any way to force these particular HTML comment to by outputted?
> 
>    I hope someone is able to share some thoughts on this..
> 
> Thanks,
> Edwin.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 
> Scanned for viruses by MailDefender


More information about the TYPO3-english mailing list