[Typo3-shop] Problems with parseFunc
Peter Klein
peter at umloud.dk
Mon Aug 8 16:07:09 CEST 2005
"Peter Klein" <peter at umloud.dk> skrev i en meddelelse
news:mailman.1.1123508325.25390.typo3-project-tt-products at lists.netfielders.de...
> Im trying to setup tt_products v2.23 on a TYPO3 v3.8 system with
> TemplaVoila & HTMLArea.
>
> My problem is that ALL tags in the tt_products field "note" gets converted
> to to &xx; , which is a problem when HTMLArea is used, as it doesn't wrap
> content in P tags, but just display the P tag on the frontend..
>
> The part of the manual regarding the "parseFunc" is pretty confusing, as
> its a mix of TSConfig & Typoscript setup.
> (Example: keepNonMatchedTags is a property of HTMLParser, but why is it
> listed as a stand-alone value, and where do you place it then??, as
> HTMLParser can be used in both TSConfig and Typoscript.)
>
> -- cut --
> The product details are parsed by these properties. So if e.g. you want ot
> allow HTML-tags to create a table in the Note field you have to set the
> parseFunc.allowTags or use the denyTags.
> To make RTE working with HTML you have to set the following into the root
> page template.
>
> Example:
> keepNonMatchedTags = 1
> RTE.default.proc.preserveTables = 1 Example:
>
> parseFunc.allowTags =
> table,tr,td,b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,h1,h2,h3,h4,h5,h6parseFunc.denyTags
> = * -- cut --
>
Forgot to include my HTMLArea Page TSConfig setup.
--- cut ---
# RTE buttons that must be shown
RTE.default.showButtons = formatblock, bold, italic, underline, left,
center, right, orderedlist, unorderedlist, outdent, indent, insertcharacter,
link, table, findreplace, chMode, removeformat, copy, cut, paste, undo,
redo, toggleborders, tableproperties, rowproperties, rowinsertabove,
rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter,
columndelete, columnsplit, cellproperties, cellinsertbefore,
cellinsertafter, celldelete, cellsplit, cellmerge
# RTE buttons that must NOT be shown
RTE.default.hideButtons = blockstylelabel, blockstyle, textstylelabel,
textstyle, fontstyle, fontsize, strikethrough, subscript, superscript,
lefttoright, righttoleft, justifyfull, textcolor, bgcolor, textindicator,
emoticon, line, image, user, acronym, spellcheck, inserttag, showhelp, about
# Enable cleanup of text pasted from MS Word
RTE.default.enableWordClean = 1
# Enable cleanup of HTML comments
RTE.default.removeComments = 1
# List of tags to be removed
RTE.default.removeTags = sdfield, font, h1, h3, h4, h5, h6
# List of tags to be removed, INCLUDING content inside tags
RTE.default.removeTagsAndContents = style, script
# Do not show table operations buttons in the toolbar
#RTE.default.hideTableOperationsInToolbar = 1
# Specify the default paragraph styles that must NOT be show
RTE.default.hidePStyleItems = H1, H3, H4, H5, H6, PRE
RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
// LINES CONVERSION
dontConvBRtoParagraph = 1
// BRING FONT TAGS INSIDE PARAGRAPHS
internalizeFontTags = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr,address
// TAGS ALLOWED
allowTags = table, tbody, tr, th, td, h2, div, p, br, span, ul, ol, li,
pre, blockquote, strong, em, b, i, u, a, nobr, hr, center, tt, q, cite,
abbr, acronym, address
// TAGS DENIED
denyTags >
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = class,style
// ALLOWED CLASSES
allowedClasses = _
// CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
// TAGS ALLOWED
allowTags < RTE.default.allowTags
// XHTML COMPLIANCE
xhtml_cleaning = 1
// AVOID TO HSC TWICE
htmlSpecialChars = 0
// CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote,
cite, tt, br, center
tags.hr.allowedAttribs = class
// REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em
// REMOVE OPEN OFFICE META TAGS
removeTags = sdfield
// PROTECT CUSTOM TAGS
keepNonMatchedTags = protect
}
}
-- cut --
Looks like the problem occurs when HTMLArea is saving the content of the
notes field to the DB..
MvH Peter Klein / Umloud Untd
More information about the TYPO3-project-tt-products
mailing list