[TYPO3] Automatic anchor tags/links with ids?

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Feb 23 10:37:33 CET 2008


Hi!

Christian Lerrahn wrote:
> 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?

Firsts, two id attrbiutes are invalid.

Second, you want to get rid of "cXXX", look in CSS styled content TS. It is added there. You can unset it with one line of TS code.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list