[Typo3] type=99 + HTML comments

Felix Natter felix.natter at ldc.de
Fri Nov 11 15:26:41 CET 2005


Felix Natter <felix.natter at ldc.de> writes:

> hi,
>
> I'd like to send newsletters with direct_mail in plain text or HTML, depending
> on the user's choice. Now dmail fetches a plaintext version of a page by using
> type=99.
>
> I use (content) elements like greeting and unsubscribe-link in all newsletters,
> so I put them in a storage folder and use "insert record" to put them
> on the individual newsletter-pages.
>
> The problem is that &type=99 (plaintext version of page) does not quite
> work with "insert record" because it inserts HTML comments, like this:
>
> ====================================================
> <!--DMAILER_SECTION_BOUNDARY_0-->
> 		<!--  Inclusion of other records (by reference): [begin] -->
> 			<!--DMAILER_SECTION_BOUNDARY_0-->
> ###USER_tx_txfnattergenderdmail_gender### ###USER_title### ###USER_name###!
> <!--DMAILER_SECTION_BOUNDARY_END-->
> 		<!--  Inclusion of other records (by reference): [end] -->
> <!--DMAILER_SECTION_BOUNDARY_0-->
>
> Dies ist der Inhalt des Newsletters.
> <!--DMAILER_SECTION_BOUNDARY_0-->
> 		<!--  Inclusion of other records (by reference): [begin] -->
>
> 			<!--DMAILER_SECTION_BOUNDARY_0-->
>
> Link zum Abmelden:
> http://www.XXX.de/index.php?id=7&cmd=edit&aC=###SYS_AUTHCODE###&rU=###USER_uid###
> (Link:
> http://www.XXX.de/index.php?id=7&cmd=edit&aC=###SYS_AUTHCODE###&rU=###USER_uid###
> )
>
>
> <!--DMAILER_SECTION_BOUNDARY_END-->
> 		<!--  Inclusion of other records (by reference): [end] -->
> <!--DMAILER_SECTION_BOUNDARY_END-->
> ====================================================
> (and for some reason type=99 does not remove them)
>
> How do I get rid of those? Also, how can I remove the "(Link: ...)"?

Ok, Michael Lüftenegger gave me the hint that one should put 
  config.insertDmailerBoundaries = 0
in the setup-field of an extension-template, and that removes the
"DMAILER_SECTION*" markers.

Unfortunately there are other comments left:

		<!--  Inclusion of other records (by reference): [begin] -->
        [...]
		<!--  Inclusion of other records (by reference): [end] -->

because I use "insert record" on the newsletter-page(s) (for salutation and
greeting, which are common to all newsletters).

thanks,

-- 
Felix Natter



More information about the TYPO3-english mailing list