[TYPO3-dev] typolink with #anchor
Daniel Brüßler
info at -remove-patchworking.de
Sat Feb 3 19:15:31 CET 2007
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
More information about the TYPO3-dev
mailing list