[TYPO3] RTE -> no <a> tags in the frontend
Sander van Gelderen
mail at sandervangelderen.nl
Wed Dec 13 10:22:16 CET 2006
Hello List,
It has occurred to me that the cause may be in my plugin's code!?
I am fetching the text field from the db like so:
$row = mysql_fetch_assoc($res);
$text = $row['text']; // RTE field
.
.
$content .= "<div id=\"xyz\">$text</div>;
return $content;
Thus $text contains the exact content of the db-record, it requires a
transformation I suppose?
How to achieve this?
Or am I barking up the wrong tree?
I would *really* appreciate some help with this, it is blocking launch of
the site.
TIA
Sander
-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Namens Sander van
Gelderen
Verzonden: dinsdag 12 december 2006 22:12
Aan: typo3-english at lists.netfielders.de
Onderwerp: Re: [TYPO3] RTE -> no <a> tags in the frontend
Hello Cyprian, Carla & list,
On Fri Dec 1 01:18:40 CET 2006 Cyprian posted:
////////////////////////////////
> There are links but they are not wrapped with <a> tags but with
> <link>xxx</link>
Ha! You're right, but not in FireFox! At least not in my FF2.0 for Mac.
I'm using Opera but FF's got this nice feature of displaying highllighted
content.
> Looks like you are using the wrong transformation method.
Yes, now it does indeed!
> Can you post your RTE configuration if you use anything different /
> additional than the default setting typical and your tt_news settings?
The problem was in those lines:
plugin.tt_news.displayLatest.subheader_stdWrap.wrap = |
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = |
plugin.tt_news.general_stdWrap>
plugin.tt_news.displaySingle.content_stdWrap.parseFunc < lib.parseFunc_RTE
I even can't remember why I put them there :/
Thanks Carla for help!!
////////////////////////////////
I am having the same problem (see my earlier post toady) but I do not
understand your solution :)
Can you please specify:
- what transformation method is the right one to use?
- How does this translate to the 'Rich Text Editor Mode' that I must chose
for a 'text area with RTE' field in kickstarter?
- my RTE configuration works fine for normal content element, should there
be any entries for the plugin?
- should my plugin TS code have any entries for the RTE?
- follows my RTE configuration, thanks in advance for any assistance,
Sander
#*** RTE Classe des Interface (Ausrichtung)
RTE.classes {
align-left {
name =
LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyleft
value = text-align: left;
}
align-center {
name =
LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifycenter
value = text-align: center;
}
align-right {
name =
LLL:EXT:rtehtmlarea/htmlarea/locallang_tooltips.xml:justifyright
value = text-align: right;
}
}
#
# *** Entfernt das Bild vor den Links
RTE.classesAnchor {
internalLink {
class = internal-link
type = page
image >
}
externalLink {
class = external-link
type = url
image >
}
externalLinkInNewWindow {
class = external-link-new-window
type = url
image >
}
internalLinkInNewWindow {
class = internal-link-new-window
type = page
image >
}
download {
class = download
type = file
image >
}
mail {
class = mail
type = mail
image >
}
}
## RTE Konfiguration
RTE.default {
# Zuweisung der CSS-Datei
contentCSS = fileadmin/css/tapete.css
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
# Buttons die gezeigt/versteckt werden
showButtons = bold, blockstyle, blockstylelabel, textstyle,
textstylelabel, italic, underline, left, center, right, orderedlist,
unorderedlist, insertcharacter, line, link, textindicator, removeformat,
findreplace, insertcharacter, undo, redo, showhelp, about, chMode
hideButtons = image, table, toggleborders, tableproperties,
rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit,
columninsertbefore, columninsertafter, columndelete, columnsplit,
cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit,
cellmerge, fontsize, fontstyle, formatblock, strikethrough,lefttoright,
righttoleft, textcolor, bgcolor, emoticon, user, spellcheck, inserttag,
outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut,
paste
# Hält die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
# blendet Statusbar in htmlarea aus
showStatusBar = 1
## Add styles Left, center and right alignment of text in paragraphs
and cells.
inlineStyle.text-alignment (
p.align-left, h1.align-left, h2.align-left, h3.align-left,
h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align:
left; }
p.align-center, h1.align-center, h2.align-center,
h3.align-center, h4.align-center, h5.align-center, h6.align-center,
td.align-center { text-align: center; }
p.align-right, h1.align-right, h2.align-right,
h3.align-right, h4.align-right, h5.align-right, h6.align-right,
td.align-right { text-align: right; }
)
## Use stylesheet file rather than the above mainStyleOverride and
inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1
proc {
# tags die erlaubt / verboten sind
allowTags = dl, dt, dd, table, tbody, tr, th, td, h1, h2,
h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b,
i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
denyTags = font
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr
# erlaubte attribute in p, div tags
keepPDIVattribs = align,class,style,id
# List all class selectors that are allowed on the way to
the database
allowedClasses (
external-link, external-link-new-window,
internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right, arial16px,
arial14px, arial12px, arial10px
)
# html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# tags die untersagt sind
removeTags = font
# entfernt html-kommentare
removeComments = 1
# tags die nicht übereinstimmen werden nicht
entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}
# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
removeTags = font
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags
# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em,
quote, blockquote, cite, tt, br, center
rmTagIfNoAttrib = span,div,font
# htmlSpecialChars = 1
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
div.fixAttrib.align.unset >
hr.allowedAttribs = class
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
## img tags werden erlaubt
img >
# td.fixAttrib.bgcolor.unset = 1
}
}
}
# Classes: Ausrichtung
classesParagraph (
arial16px, arial15px, arial14px, arial13px, arial12px,
arial11px, arial10px,
)
# Classes: Eigene Stile
classesCharacter = arial16px, arial15px, arial14px, arial13px, arial12px,
arial11px, arial10px,
# classesImage = centertext
# Classes für Links (These classes should also be in the list of
allowedClasses)
classesAnchor = external-link, external-link-new-window,
internal-link, internal-link-new-window, download, mail
#classesAnchor.default {
# page = internal-link
# url = external-link-new-window
# file = download
# mail = mail
#}
classesTD (
blok-oranje
)
# zeigt alle CSS-Klassen die in formate.css vorhanden sind
showTagFreeClasses = 0
# Do not allow insertion of the following tags
hideTags = font
# Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 1
keepToggleBordersInToolbar = 1
# Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations=1
disableColorFieldsetInTableOperations=1
disableLayoutFieldsetInTableOperations=1
disableBordersFieldsetInTableOperations=1
}
# Use same processing as on entry to database to clean content pasted into
the editor
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db
# FE RTE configuration (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
# Breite des RTE in Fullscreen-Ansicht
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 80%
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list