[TYPO3] Lower Case "c" Prepended to Bookmarks

JoH asenau info at cybercraft.de
Wed Oct 31 19:50:01 CET 2007


>> But since the typolink function is aware of this rule, the links
>> will still work as expected and you won't need the comptability
>> setting anyway.
>
> typolink has nothing to do with this. This statement is wrong.

Well - usually I respect my signature before posting ;-)

So - no, it isn't wrong, since it's typolink which is creating the link to
the anchor _and_ automatically prepends the c to the number so that it will
be c1234 instead of 1234. This has been changed in version 4 to make sure
the rendering of ids will be done according to W3C rules. This again had to
be done, because the output changed from <a name="whatever"> to <a
id="whatever"> since the name attribute is not allowed for <a> tags anymore
when using some of the newer XHTML versions.

If the ids of the tags don't match in this case, it might be due to a wrong
setting of the compatibility version.

This should be the current version (with compatibility set to 4.x):
tt_content.stdWrap.dataWrap = <a id="c{field:uid}"></a>|

This was the 3.x version:
tt_content.stdWrap.dataWrap = <a name="{field:uid}"></a>

This is only true for CSS-styled-content, so all the people who are using
another TypoScript template be it static or homebrewn will have to check
this anyways.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com




More information about the TYPO3-english mailing list