Momentan macht Typo3 bspw. bei LIST von tt_news noch immer diese blöden <p>-Tags rein. Im Frontend sieht es bei mir so aus:
<tr>
<td bgcolor="#A39EE0" valign="top">
<font face="verdana" size="1" color="black"> Mittwoch, 13. Oktober 2004 10:33 <br />
<a href="199.html?&tx_ttnews[tt_news]=6&tx_ttnews[backPid]=195&cHash=7eeecbb8f7" target="_self"><strong>Neues Design der Website</strong></a><br />
<a href="199.html?&tx_ttnews[tt_news]=6&tx_ttnews[backPid]=195&cHash=7eeecbb8f7" target="_self"></a>
<b><p>Das CMS-Template wurde komplett neu, mit einem Tabellen- und Frame-losen Design erstellt. Wir bitten...</p></b>
<a href="199.html?&tx_ttnews[tt_news]=6&tx_ttnews[backPid]=195&cHash=7eeecbb8f7" target="_self">[mehr]</a><br />
</font><br />
</td>
</tr>
<tr>
Das
<b><p> News ....... </p></b>
ist etwas dumm . . . .
Wie kriege ich also die blöden <p>-Tags weg?
Tidy und XHTML-Cleaning ist auch an.
Bisher habe ich folgende Einstellungen erfolglos ausprobiert (Caches habe ich natürlich jedesmal geleert):
Constants:
# Verhindern, daß der RTE Styles reindichtet
content.RTE_compliant = 1
# Damit auch im news+ mit RTE die Margins rausgehen
content.RTE_compliant.mode = stylesheets
content.RTE_compliant = 1
# Damit auch im news+ mit RTE die Margins rausgehen
content.RTE_compliant.mode = stylesheets
#remove css attributes for p- and pre-tags
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
tt_news.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style =
}
Setup:
#remove css attributes for p- and pre-tags
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
# Verhindern, daß der RTE Styles reindichtet
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
tt_news.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style =
}
plugin.tt_news = USER
plugin.tt_news {
templateFile = fileadmin/bellowski/template/news/tt_news_template_bellowski.tmpl
displayList.date_stdWrap.strftime= %A, %e. %B %Y
displayLatest.date_stdWrap.strftime= %A, %e. %B %Y
displaySingle.date_stdWrap.strftime= %A, %e. %B %Y
displaySingle.image.file.maxW = 150
general_stdWrap.brTag =
general_stdWrap.encapsLines.wrapNonWrappedLines = <b>|</b>
general_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style =
limit = 5
latestLimit = 3
}
####################################
#generate xhtml-code
config.xhtml_cleaning = all
config.doctype = <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
config.xmlprologue = none
config.metaCharset = iso-8859-1
#remove css attributes for p- and pre-tags
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
PRE.style=;
}
plugin.tt_news.displaySingle.title_stdWrap.wrap =
plugin.tt_news.displaySingle.caption_stdWrap.wrap =
plugin.tt_news.displayList.caption_stdWrap.wrap =
TSConfig
####################################
# Verhindern, daß der RTE Styles reindichtet
RTE.default.proc=
RTE.config.tt_content.bodytext.proc.entryHTMLparser_db = 1
RTE.config.tt_content.bodytext.proc.entryHTMLparser_db {
allowTags = strong
}
RTE.config.tt_news.bodytext.proc.entryHTMLparser_db = 1
RTE.config.tt_news.bodytext.proc.entryHTMLparser_db {
allowTags = strong
}
#Enable <br> im RTE und Verhindern der Transformationen durch den RTE
RTE.default.proc {
dontConvBRtoParagraph = 1
denyTags = font,p
hidePStyleItems = H1,H2,H5,H6,PRE
overruleMode=ts_images,ts_links,ts_reglinks
}
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
Ich gebe ja zu, daß ich nicht so super mit Typo3 bin, aber wenn Typo3 diesen Schrott mit den <p>-Tags von alleine reinsetzt .......
Deswegen "schiesse ich auch mit Code so rum".
Bei anderen CMSen hat man meines Erachtens mehr Kontrolle.
Dieses Problem mit den <p>-Tags ist wohl bei vielen vorhanden, wie ich verschiedenen Foren entnehmen kann.
Hat denn keiner einen Rat noch übrig?