Zum Inhalt springen

Problem mit Links im Newsletter

Erstellt am 18. Oktober 2006 · 1 Antwort · letzte Antwort am 24. Oktober 2006

Tags: Links, Direct Mail, Frage

T0m ·

Hallo Forum

ich hab mal DirectMail (aktuelle Version) eingerichtet
hab den Newsletter mit nem Table Template aufgebaut und lass die Inhalte fuer Header und Bodytext seperat rendern

allerdings werden Links nun wie folgt erzeugt:

<link http:wwwwebde="" _blank="" external-link-new-window="" ffneteinenexternenlinkineinemneuenfenster="" />erstellt</link>

ich hab fuer den Newsletter ein eigenes Template angelegt wo ich alle Settings loesche
(hab auch mal Testweise alles wieder an Templates mit reingenommen aber Links werden nicht zu <a... </a>)

hier mal die Config vom Template vielleicht hab ich was drin stehn was den "Fehler" ausloest ich aber nicht seh

vielleicht kann mir ja jemand helfen

Dank und Gruss
Tom

page = PAGE
page {
  typeNum = 0
  headerData = COA
  headerData.1 = TEXT
  headerData.1.value = <link rel="shortcut icon" href="fileadmin/images/favicon.ico" /> 
  headerData.10 = TEXT
  headerData.10.value ( 
    <style type="text/css">
    * {padding:0px; margin:0px; font-family: arial,helvetica,sans-serif; font-size: 12px; } // sollte an den Anfang jeder CSS Datei fuer Typo (Typo3forum.net)

    img { border: 0px; }

    html {   font-size: 11px; line-height: 13px; font-weight: normal; color: #000000; backgound-color: #e5e5e5; background-image: url(http://###SERVER###/fileadmin/template/bg_logo2.gif); background-repeat:repeat; }

    .title {  text-decoration:none; font-size: 10px; line-height: 12px; font-weight: bold; color: #000000; }


    a:link {  font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #336699; }
    a:visited { font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #336699; }
    a:hover {  font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #336699; }

    a.contact:link {  font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #000000; }
    a.contact:visited { font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #000000; }
    a.contact:hover { font-size: 11px; line-height: 13px; text-decoration: underline; font-weight: normal; color: #000000; }

    a.top:link {  text-decoration:none; font-size: 10px; line-height: 12px; font-weight: normal; color: #000000; }
    a.top:visited {  text-decoration:none; font-size: 10px; line-height: 12px; font-weight: normal; color: #000000; }
    a.top:active {  text-decoration:none; font-size: 10px; line-height: 12px; font-weight: normal; color: #000000; }
    a.top:hover {  text-decoration:none; font-size: 10px; line-height: 12px; font-weight: normal; color: #000000; }

    .bodytext { margin-left:25px; border-left: 1px solid #000000; padding-left:10px; }

    h1 {width:965px; background-color:#ADAAA5; padding-top:5px; padding-bottom:5px;	border-top:1px solid #000000; border-bottom:1px solid #000000;	padding-left:10px; vertical-align:middle; }

    .nl-spacer { height:20px; minheight:20px; margin-left:25px; border-left:1px solid black; }
    </style>
  )
}

#Page ein Template zuweisen
page.10 = TEMPLATE
page.10 {
  template = FILE
  template.file = fileadmin/template/newsletter003.tmpl
  workOnSubpart = document_body

  subparts.MAINCONTENT = CONTENT
  subparts.MAINCONTENT {
    table = tt_content
    select {
      pidInList = this
      orderBy = sorting
      where = colPos=0
    }
  renderObj = COA
  renderObj {
    10 = TEXT
    10.wrap = <tr><td valign="top" align="left" height="1"> </td><td valign="top" align="left" colspan="2" height="1" style="padding:5px; font-weight:bold; border-top:1px solid black; border-left:1px solid black; border-bottom:1px solid black; background-color:#a9a9a9;"> | </td></tr>
    10.field = header
    20 = TEXT
    20.wrap = <tr><td valign="top" align="left" width="10" height="1"> </td><td valign="top" align="left" width="10" height="1" style="border-right:1px solid black"> </td><td valign="top" align="left" width="955"><table cellspacing="10" cellpadding="5" width="100%" border="0"><tr><td valign="top" align="left" width="10" height="1"> </td><td valign="top" align="justify" width="100%" bgcolor="#e5e5e5" style="padding:5px; border:1px dashed black;"> | </td></tr></table></td></tr>
    20.field = bodytext
    30.typolink {
      parameter.field = uid
      target = {$styles.content.searchresult.resultTarget}
      additionalParams.data = register:SWORD_PARAMS
      additionalParams.required = 1
      additionalParams.wrap = &no_cache=1
    }
    parseFunc =< lib.parseFunc_RTE
  }
}

---------
Nachtrag: Loesung gefunden

wenn man Zeile 64-71 durch

10.parseFunc < tt_content.text.20.parseFunc

ersetzt klappts auch
hab da wohl irgendwie falsch gedacht gehabt
abe aus Fehlern lernt man nach wie vor am besten
vielleicht hilfts auch jemand mit aehnlichen Gehirnwindungen *g

T0m ·

soweit sogut

wie schaff ich es nun noch dass ich das Decrypt Script fuer die Email Links zum laufen bekomm
hab alledings includeMedia=0 gesetzt
der CSS Code ist im Header untergebracht ebenso wie das decrypt-JavaScript
(mit page.headerData.10.value ( ... ) )

meine Page Cfg

mod.web_modules.dmail {
  dmailCategories = 1;3;10;11
  from_email=##FROM_EMAIL
  from_name=##FROM_NAME
  replyto_email=##EMAIL
  replyto_name=##REPLY_NAME
  priority=3
  enablePlain=0
  enableHTML=1
  sendOptions=2 #only HTML
  includeMedia=0
  flowedFormat=1
  plainParams=&type=99
  use_domain=0
  quick_mail_encoding=quoted-printable
  direct_mail_encoding=quoted-printable
  quick_mail_charset=iso-8859-1
  direct_mail_charset=iso-8859-1
  use_rdct=1
  enable_jump_url=0
  long_link_mode=0
  userTable = uid, name, title, email, phone, ww, address, company, city, zip, country, fax, module_sys_dmail_category, module_sys_dmail_html
}

config.insertDmailerBoundaries = 1

#uebernimmt die Kategorien in die Eingabe im BE
TCEFORM.tt_content.module_sys_dmail_category.PAGE_TSCONFIG_IDLIST = 55,165
TCEFORM.tt_address.module_sys_dmail_category.PAGE_TSCONFIG_IDLIST = 55,165
TCEFORM.fe_users.module_sys_dmail_category.PAGE_TSCONFIG_IDLIST = 55,165
TCEFORM.sys_dmail_group.select_categories.PAGE_TSCONFIG_IDLIST = 55,165

TCEFORM.tt_content.module_sys_dmail_category.disabled = 0
TCEFORM.tt_address.module_sys_dmail_category.disabled = 0
TCEFORM.fe_users.module_sys_dmail_category.disabled = 0
TCEFORM.sys_dmail_group.select_categories.disabled = 0

vielleicht komm ich auch wieder selbst drauf, aber falls jemand schneller ist 🙂

Dank und Gruss T0m