Get rid of the anchor tags that TYPO3 automatically generates



 

That I couldn't get rid of those silly anchor tags on one of my TYPO3 sites was driving me out of my mind. After some searching, I figured out how to get rid of those anchor tags.

It's so annoying. All I want is some clean HTML. I searched high and low to find out how to get rid of those anchor tags that are automatically generated by TYPO3 and prepended or appended to data from the tt_content table.

What didn't work was adding the following to my Typoscript template:

tt_content.stdWrap.dataWrap >

That was about the most popular solution floating around in all of the TYPO3 newsgroups. I tried that and cleared the cache (even though saving a template clears the cache automatically). Then I gave the page a hard refresh and the darn anchor was still there.

Luckily I'm kind of smart and I realized that the only way to find out how to get rid of the automatic anchors was to search my typoscript template using the typoscript object browser's built in search feature.

I simply searched for "a id=" and there were two results. I cleared the values for both of them and now I have the following two lines in my typoscript setup:

 

tt_content.stdWrap.innerWrap.cObject.66.10.value >

tt_content.stdWrap.prepend.dataWrap >

Now, my pages don't have those useless anchor tags with the "<a id="c132"" html littering my code.

 


Orcen, 29-07-11 16:45:
Hi, i have tried this setup, but nothing. I have the version 4.5LTS and none setting in setup has worked. The final und brutal solution was to remove that code from the static_template table in the database.
Its a mean little thing this anchor tag.

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
TYPO3 CMS Computers & Technology
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.