[TYPO3] Mark external links
Kenneth Bo Larsen
kennethbo at stofanet.dk
Mon Jul 10 20:09:13 CEST 2006
Hi again Robert
Nice to hear that you found a solution..
Regarding the image in mail-links..i found this post about RTE
configuration on the list.
Dont know if its usefull but maybe you can see something in it for you
to use:
*PART OF THE POST:*
# *** 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 >
}
}
*
You can read the complete post here:*
http://lists.netfielders.de/pipermail/typo3-project-rte/2006-May/000612.html
I'm not a code-head myself...just thought it looked interesting.
Robert Markula skrev:
>Robert Markula wrote:
>
>
>>Hi Kenneth!
>>Thanks for the link! The only thing is that the TS snippet in this
>>example marks all links with an image. I just want to mark external
>>links with an image.
>>
>>I've found the solution with the help of google:
>># Mark external links with an image
>>lib.parseFunc_RTE.tags.link.prepend = COA
>>lib.parseFunc_RTE.tags.link.prepend {
>> 20 = TEXT
>> 20.value = <img src="fileadmin/system/templates/res/link_ext.gif"
>>alt="" title="Dieser Link führt zu einer externen Webseite" />
>> 20.if {
>> value = 0
>> isGreaterThan.cObject = TEXT
>> isGreaterThan.cObject.intval = 1
>> isGreaterThan.cObject.data = parameters:allParams
>> negate = 1
>> }
>>}
>># Use the above function also for lib.parseFunc
>>lib.parseFunc.tags.link.prepend < lib.parseFunc_RTE.tags.link.prepend
>>
>>
>
>The only problem of this solution is that also all mail links are
>processed by the above code (i.e. also e-mail links get the image in
>front of them). How can I avoid that?
>
>Cheers,
>Ro
>_______________________________________________
>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