Hallo,
ich würde gerne die EXT css2inline OHNE Templavoila verwenden. In der Doku ist leider nur der gebrauch mit Templavoila beschrieben:
page >
page = PAGE
page.typeNum = 0
# The extension will produce a full blown html document based on the html provided
page.config.disableAllHeaderCode = 1
# Call the extension
page.10 = USER
page.10.userFunc = tx_css2inline_pi1->main
# Select the style sheets to be taken into consideration
page.10.css = COA
page.10.css.10 = FILE
page.10.css.10.file = fileadmin/templates/wcc-main/css/wcc_main.css
page.10.css.20 = FILE
page.10.css.20.file = fileadmin/templates/wcc-main/css/tt_news_news.css
page.10.css.30 = FILE
page.10.css.30.file = fileadmin/templates/wccassembly/css/tt_news_news.css
# Generate the HTML content of the page
# Head part
page.10.html.10 = TEXT
page.10.html.10.wrap = <head>|</head>
page.10.html.10.value = <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
# Body part
page.10.html.20 = USER
page.10.html.20.wrap = <body>|</body>
page.10.html.20.userFunc = tx_templaVoila_pi1->main_page
Hat das evtl. auch jemand ohne TemplaVoila zum Laufen gebracht?
Grüße
habe soeben eine E-Mail des EXT Entwicklers erhalten und konnte es damit lösen.
Folgendes TS habe ich im SysOrdner verwendet, in dem meine Newsletter liegen:
page = PAGE
page.typeNum = 0
# The extension will produce a full blown html document based on the html provided
page.config.disableAllHeaderCode = 1
# Call the extension
page.10 = USER
page.10.userFunc = tx_css2inline_pi1->main
# Select the style sheets to be taken into consideration
page.10.css = COA
page.10.css.10 = FILE
page.10.css.10.file = fileadmin/css/newsletter.css
# Generate the HTML content of the page
page.10.html = COA
# Head part
page.10.html.10 = TEXT
page.10.html.10.wrap = <head>|</head>
page.10.html.10.value = <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
# Body part
page.10.html.20 < styles.content.get
page.10.html.20.wrap = <body><table border="0" cellspacing="0" cellpadding="0" width="600" align="center"><tr><td>|</td></table></body>
Habe bei Template->Options, Clear Constants und Setup angehakt und unten drunter noch rootlevel.
Bei Includes nicht vergessen die Direct Mail Templates und CSS_styled_content einzubinden.
Herzlichen Dank an Olivier Schopfer.
Und wie geht das mit Markern ?
so sieht mein TS im Moment aus:
page = PAGE
page.typeNum = 0
page {
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/templates/newsletter-template.html
10.workOnSubpart = DOCUMENT_BODY
10.marks {
LOGO = TEXT
LOGO.value (
<a href="http://www.domain.de/" style="text-decoration: none;"><img src="http://www.domain.de/fileadmin/templates/img/logo_01.png" alt="" border="0" /></a>
)
DATE = TEXT
DATE {
data = date:U
strftime = %B %Y
}
NLANREDE = TEXT
NLANREDE.value = Sehr geehrte(r) ###USER_tx_directmailsubscription_localgender### ###USER_title### ###USER_last_name###,
# Newsletter Additional Links#
STORNO = TEXT
STORNO.value (
<a href="http://www.domain.de/index.php?id=11&cmd=edit&aC=###SYS_AUTHCODE###&rU=###USER_uid###" style="text-decoration:none;color:#7f57b5;" target="_blank">Newsletter abbestellen</a>
)
ORG = TEXT
ORG {
value = hier
typolink.parameter.data = page:uid
typolink.ATagParams = style="text-decoration:none;color:#7f57b5;"
typolink.extTarget = _blank
typolink.target = _blank
wrap = Sie können den Newsletter nicht sehen? Dann klicken Sie |.
}
NLCONTENTTOP = CONTENT
NLCONTENTTOP{
table = tt_content
select.orderBy = sorting
select.where = colPos=2
}
NLCONTENT = CONTENT
NLCONTENT{
table = tt_content
select.orderBy = sorting
select.where = colPos=0
}
COPYRIGHT = TEXT
COPYRIGHT.value (
)
FUSSZEILE = TEXT
FUSSZEILE.value (
© 2013 xxx -
)
#end
}
}