[TYPO3] Changing anchor name

Dmitry Dulepov [typo3] dmitry at typo3.org
Thu Sep 6 10:27:12 CEST 2007


Hi!

Jan Slusarczyk wrote:
> Is it possible to change the default anchor name from content id (<a 
> id="Xid">) to the content element title?
> I want to use anchors for SEO of some of my pages. To do this I need to 
> use a specific text as an anchor name (href=sthing.html#keyword). But 
> all my content elements are already wrapped in <a id="XID"> anchors. I 
> don't want to put even more anchors by adding them, I'd rather change 
> the default generation scheme.
> Is it possible? Any hints?

It is possible but if you want to anchor to parts of the page, it will 
be a problem because RTE will still put numbers to links, not your titles.

You need to change the following property in TS setup:

	tt_content.stdWrap.dataWrap

By default it takes this value:

	<a id="c{field:uid}"></a> |

which creates those numbers.

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs


More information about the TYPO3-english mailing list