[Typo3] Use TypoScript to add an image before every link
Sacha Vorbeck
sachav at gmx.net
Thu Aug 25 13:49:43 CEST 2005
Hi Pierre,
> This extension seems great to add images before external, internal or mailto links. However I need the ability to manually select the icon from 2 or 3 choices. So far, from what I read in the extension's doc, I cannot change the icon selection criteria.
> I will next investigate the parseFunc and HTMLparser, maybe that can do the job. I imagine a solution where I can select a class for the link in the RTE, then use some postprocessing/rendering hook to detect the class in the A tags and insert the image at the correct position.
please take a look at my sponsoring request that I sent to the
rte-newsgroup this morning. Two people already have confirmed to sponsor
it, so we`re almost there:
> many CSS styled websites use link icons inserted via CSS to
> differentiate between seperate external, internal, mail, download-links
> etc..
>
> But if the text of a link is longer than one line, the linebreak
> will cause the image to disappear sometimes if is inserted via CSS. It
> also has some usability/accessibility issues as you can`t add an
> explaining alt text to the image. There are different solutions
> available, some use CSS3 or the before/after pseudo elements. But none
> of them work in all browsers.
>
> The only solution to get it working stable is to insert the icons into
> the HTML. An example link looks like this:
> <a class="externalwindow" href="#" title="Open external link in new
> window"><img src="fileadmin/externalwindow.gif" width="14" height="10"
> alt="Open external link in new window" />TYPO3.org</a>
>
> The drawback is that it is very complicated for an editor to insert the
> icon manualy in the RTE. It is much easier to add a link class.
>
> That`s why I sent a feature request to Stanislas. He offered to include
> a couple of new settings that allow auto-insert of link-icons into the
> rendered HTML-code based on the class an editor adds to a link for the
> amount of $350 USD.
>
> I would like to know if anybody else is interested in this feature and
> wants to join me in sponsoring it.
>
> If so, please contact me via info at unlimited-vision.net
--
Ciao,
Sacha
More information about the TYPO3-english
mailing list