[TYPO3-dev] typolink with #anchor
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Sat Feb 3 19:35:30 CET 2007
Am Sat, 03 Feb 2007 19:15:31 +0100 schrieb Daniel Brüßler:
> Hello,
>
> I'd like to fix the TOC in dr_wiki when RealURL is in use. In the moment
> the TOC is not rendered correctly when realurl is switched on, because
> it's not a typolink.
>
> This would work, but has no good smell:
>
> --snip--
> $temp = $this->pi_linkToPage('search', $GLOBALS['TSFE']->id);
> $pattern = '/href="(.+)"/i';
> $replacement = 'href="$1#search"';
> $content .= preg_replace($pattern, $replacement, $temp);
> --/snip--
>
> What's better?
>
> Thanks in advance
>
> kind regards
> Daniel Brüßler
Hi Daniel,
please visit the thread "Link Problems with pi_base" from 28.01.2007.
Regards
Elmar
More information about the TYPO3-dev
mailing list