[TYPO3-content-rendering] Valid anchor links

Sebastian Kurfuerst sebastian at garbage-group.de
Wed Oct 19 13:01:08 CEST 2005


Hi @all,
I am currently looking into the gremlin you submitted. Is it really
necessary to make this anchor configurable? Wouldn't it be enough to
prefix the anchor with "a" or some other character, but "hard-coded" to
this character?

Greets,
Sebastian
Am Montag, den 27.06.2005, 11:54 +0200 schrieb Sacha Vorbeck:
> Hi,
> 
> > example for the fileadmin/user_typolink.inc:
> > <?php
> > function user_xhtmlAnchor($content,$conf) {
> > $uriparts = explode('#',$content);
> > if (isset($uriparts['1'])) {
> >   $content = $uriparts['0'].'#content'.$uriparts['1'];
> > }
> > return $content;
> > }
> > ?>
> > 
> > I is not tested in a production environment, but it should work.
> 
> great, thank you very much ;-). Hm, wouldn`t it be nice if one of the
> next releases could feature a constant like config.prefixlocalAnchorLinks?
> 
> I`ll add a feature request.
> 




More information about the TYPO3-project-content-rendering mailing list