[TYPO3-content-rendering] Valid anchor links
Sacha Vorbeck
sachav at gmx.net
Mon Jun 27 11:54:56 CEST 2005
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.
--
Ciao,
Sacha
More information about the TYPO3-project-content-rendering
mailing list