Zum Inhalt springen

Direct Mail bindet Stylesheet der nächsthöheren Ebene ein

Erstellt am 22. Januar 2007 · 4 Antworten · letzte Antwort am 22. Januar 2007

Tags: Direct Mail, HTML & CSS, Frage

kk3003 ·

Hallo,

ich habe Direct Mail unter Typo 3.8.0 installiert. Nach anfänglichen Problemen funktioniert der HTML-Versand, etc. nun problemlos.

Leider werden den HTML E-Mails anscheinend das Stylesheet der nächsthöheren Ebene angehangen.

Clients wie Lotus Notes, die die Interpretierung nicht unterstützten (dazu sind die Styles der CSS im E-Mailbody garnicht vorhanden, da das CSS von einer Ebene höher stammt.), binden den Quelltext des Attachments einfach in den Mailbody ein.

Das sieht 1. garnicht schön aus. Und 2. völlig unnötig, weil ich die Style direkt in HTML eingeben.

Mein Template befindet sich direkt im DirectMail-Ordner mit folgenden Einstellungen:

(constants)

# GENERAL SPACE SETTINGS
content.headerSpace = 20|20

(setup)

# FORMATIERUNG DER CONTENT ELEMENTEN
tt_content.text.stdWrap.wrap = <div class="Editorial"> | </div>
tt_content.textpic.stdWrap.wrap = <div class="Topic"> | </div>

seite = PAGE
seite.typeNum = 0

# BODYTAG MODIFIZIEREN
seite.bodyTag = <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

# TEMPLATE STARTEN
seite.10 = TEMPLATE
seite.10 {
	template = FILE
	template.file = fileadmin/ndt/_template_/template_NEWSLETTER_HMTL.html
	workOnSubpart = DOCUMENT_BODY
	
	# CONTENT
	marks.CONTENT = CONTENT
	marks.CONTENT < styles.content.get

    # FOOTER
    marks.FOOTER = RECORDS
    marks.FOOTER {
        tables = tt_content
        source = 4781
        dontCheckPid = 1
    }	
}

Rootlevel?

  • YES

Include static:

  • plugin.alt.plain(98-)

Static template files from T3 Extensions:

  • Default. (Include before if root-flag is set)

that's it....

Danke für jede Hilfe im voraus

Gruß
Alexander

kk3003 ·

Hallo,

danke für den Tipp. Macht leider keinen Unterschied.

Der HTML-Header der E-Mail sieht so aus:

<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-88=
59-1" />

<!--=20
	This website is brought to you by TYPO3 - get.content.right
	TYPO3 is a free open source Content Management Framework created=
 by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2005 of Kasper Skaarhoj. Extensions are=
 copyright of their respective owners.
	Information and contribution at http://www.typo3.com
-->

	<link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:part1.e9fdf02a38a=
7d0c3516174cf0b2fe445_MID93_t2" />
	<title>Nondestructive Testing products by PR=DCFTECHNIK AG : Testmail</t=
itle>
	<meta name=3D"generator" content=3D"TYPO3 3.8 CMS" />
	<script type=3D"text/javascript">
		/*<![CDATA[*/
	<!--
		browserName =3D navigator.appName;
		browserVer =3D parseInt(navigator.appVersion);
		var msie4 =3D (browserName =3D=3D "Microsoft Internet Explorer"=
 && browserVer >=3D 4);
		if ((browserName =3D=3D "Netscape" && browserVer >=3D 3) || msie4=
 || browserName=3D=3D"Konqueror") {version =3D "n3";} else {version=
 =3D "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
	=09
	// -->
		/*]]>*/
	</script>

<script type=3D"text/javascript">
	/*<![CDATA[*/
<!--

  // JS function for uncrypting spam-protected emails:
function UnCryptMailto(s) {	//
	var n=3D0;
	var r=3D"";
	for(var i=3D0; i < s.length; i++) {
		n=3Ds.charCodeAt(i);
		if (n>=3D8364) {n =3D 128;}
		r +=3D String.fromCharCode(n-(1));
	}
	return r;
}
  // JS function for uncrypting spam-protected emails:
function linkTo_UnCryptMailto(s)	{	//
	location.href=3DUnCryptMailto(s);
}
	=09

// -->
	/*]]>*/
</script>

Diese Zeile muss sich doch irgendwie unterdrücken lassen.

<link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:part1.e9fdf02a38a=
7d0c3516174cf0b2fe445_MID93_t2" />

Das JavaScript soll am Besten auch weg....

Vielen Dank für jede Hilfe

Gruß
Alexander

McGregor ·

Hi!

Also... Ich habe bei meinen Direct-Mail Modulen immer alles rausgeschmissen und reinen HTML-Code für die HTML-Mails benutzt.

Dazu habe ich ein ext-template auf der Eingangsseite des Modules angelegt und folgendes eingefügt. Das entfernt dir alles aus der Seite. Da steht dann nachher überhaupt nichts mehr. Vielleicht hilft dir das weiter:

page >

config.removeDefaultJS = 1
config.disableAllHeaderCode = 1
config.incT3Lib_htmlmail = 1
config.admPanel = 0

page = PAGE
page.10 < temp.meinContent

text = PAGE
text.typeNum = 99
text.10 = CONTENT
text.10 {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos = 2
}

tt_content.text.10 >
tt_content.text.20.wrap >
tt_content.text.20.brTag >
tt_content.text.20.textStyle >
tt_content.text.20.parseFunc >
tt_content.text.20.editIcons >
tt_content.stdWrap.dataWrap >
tt_content.stdWrap.space = 0|0
tt_content.text.20.prefixComment >
tt_content.text.20.required >
tt_content.stdWrap.prefixComment >
tt_content.html.prefixComment >

config.notification_email_urlmode = all

page.10.wrap = |<!--TYPO3SEARCH_begin--><!--TYPO3SEARCH_end-->

Grüße
McGregor