[TYPO3-ttnews] tags are not rendered when adding fields to tt_news
Stefan Kaufmann
kaufmann at dwwd.ch
Sun Aug 27 23:08:38 CEST 2006
Stefan Kaufmann wrote:
> Hi list,
>
> I came across a problem which I can not solve myself.
>
> .I added additional text fields to tt_news with the kickstarter extension.
>
> .they show up in the BE and and text can be entered and saved.
>
> .to do this I use the htmlarea 1.4.1
>
> The problem is that the HTML tags used with htmlarea are not correctly
> rendered or even omitted, e.g. line brakes showing up correctly in BE
> won't be rendered in the front end.
>
> Does anyone have an idea where I would have to start troubleshooting?
> The 'bodytext' field - main text field of tt_news ext. works fine.
>
> Thanks for your help!
> Stefan Kaufmann
>
>
I solved the issue with this TSConfig setup found in the english
mailinglist:
RTE.default.contentCSS = fileadmin/templates/main/css/rte.css
RTE.default.enableWordClean = 1
RTE.default.disableEnterParagraphs = 0
RTE.default.useCSS = 1
RTE.default.hideButtons = fontstyle, fontsize, lefttoright, righttoleft,
inserttag
RTE.default.hidePStyleItems = PRE, H1
RTE.default.hideTags = font, font (full)
RTE.default.showTagFreeClasses = 0
RTE.default.classesCharacter = quote, deprecated
RTE.default.classesImage =
RTE.default.classesAnchor =
RTE.default.showStatusBar = 1
#must be set for span classes !!!
RTE.config.tt_content.bodytext.proc.allowedClasses = quote, deprecated
RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
// LINES CONVERSION
dontConvBRtoParagraph = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr
// TAGS ALLOWED
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p,
br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup,
strike, a, img, nobr, hr, tt, q, cite, abbr, acronym
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = align,class,style
// CONTENT TO RTE
HTMLparser_rte {
// TAGS ALLOWED
allowTags < RTE.default.proc.allowTags
// DO NOT REMOVE UNMATCHED TAGS
keepNonMatchedTags = 0
}
// CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
// XHTML COMPLIANCE
xhtml_cleaning = 1
// CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote,
blockquote, cite, tt, br, center
tags.font.allowedAttribs = color, style
tags.hr.allowedAttribs = class
// REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em
rmTagIfNoAttrib = span,div,font
#htmlSpecialChars = 1
}
RTE.default.disableColorPicker = 1
RTE.default.disableSelectColor = 0
RTE.colors {
color1 {
name = dunkelblau
value = #000066
}
color2 {
name = blau
value = #00008B
}
color3 {
name = rotbraun
value = #B22222
}
color4 {
name = dunkelrot
value = #CC3300
}
color5 {
name = mittelbraun
value = #D2691E
}
color6 {
name = orange
value = #FF9933
}
color7 {
name = pfirsich
value = #FFDAB9
}
color8 {
name = natur
value = #FDF5E6
}
}
RTE.default.colors = color1, color2, color3, color4, color5, color6,
color7, color8
More information about the TYPO3-project-tt-news
mailing list