[TYPO3] Automatic anchor tags/links with ids?
Benjamin Mack
mack at xnos.org
Sat Feb 23 09:27:59 CET 2008
Hey Christian,
I wrote something like this in an extension called "bm_printlinks" or
something like that. It's similar to what you're describing. If the ext
does not suit you maybe you can take a look at the source to get your
idea done.
greetings,
benni.
-SDG-
Christian Lerrahn wrote:
> Hi,
> when you insert a content element, TYPO3 will always prepend an anchor
> tag with its uid in the name, like e.g. <a id="c10"></a>.
>
> Now, my problem is that I want to set up a CSS based print view where
> links are displayed with the URL from the HREF parameter displayed
> after the link text. In other words a link <a
> href="http://blabla.com/foo.html">bar</a> will then become "foo
> (http://blabla.com/foo.html)". The problem is that the anchors
> mentioned above will then become "()" because they are a tags without
> HREFs. So, what I would like to do is place an id on these tags to make
> them look like <a id="c10" id="noprint"></a> so that I can treat them
> separately in my style sheet. Even better would be if I could use
> different ids for anchors, internal and external links. Is this
> possible?
>
> Any hints anyone?
>
> Cheers,
> Christian
> _______________________________________________
> 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