[TYPO3] Mark external links
Robert Markula
robert.markula at gmx.net
Mon Jul 10 17:45:26 CEST 2006
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
Cheers,
Ro
Kenneth Bo Larsen wrote:
> Hi,
>
> I found this for you, maybe you can use it ?
>
> http://www.hachmeister.org/en/typo/tips-tricks/tips-tricks/?tx_khtypo3tips_pi1%5Bcategory%5D=-1&tx_khtypo3tips_pi1%5BshowUid%5D=2&cHash=a40575572c
>
>
>
> Kenneth
>
> Robert Markula skrev:
>
>> Hi List,
>> I'm trying to find a way to automatically mark external links with a
>> little icon in front of the link and a standard link title text.
>> I am searching for a solution whick works for all content elements, be
>> it tt_content, tt_news or tt_products.
>> Is this possible with typoscript?
>>
>> Cheers,
>> Ro
More information about the TYPO3-english
mailing list