|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
| Sponsored Links |
|
#2
|
|||
|
|||
|
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 _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#3
|
|||
|
|||
|
Hi Elmar,
thanks!! Daniel > please visit the thread "Link Problems with pi_base" from 28.01.2007. > Elmar _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
|
#4
|
|||
|
|||
|
Hi Daniel,
Daniel Brüßler wrote on 03.02.2007 19:15: > > 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? > $temp = $this->pi_linkToPage('search', $GLOBALS['TSFE']->id.'#search'); TSRef is your friend ;-) Regars Thorsten _______________________________________________ TYPO3-dev mailing list TYPO3-dev (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...info/typo3-dev |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-german] Typolink - Linktext ändern | Daniel Selinger | typo3-german@lists.netfielders.de | 5 | 10.01.2007 22:30 |
| [TYPO3] typolink - open.window | Camilla | typo3-english@lists.netfielders.de | 2 | 20.12.2006 15:39 |
| [TYPO3-german] nur die URL mit typolink? | Christian Welzel | typo3-german@lists.netfielders.de | 3 | 01.12.2006 17:51 |
| Re: [Typo3-UG France] Création de typolink | Pierre ROUWENS | typo3-france@lists.netfielders.de | 0 | 28.12.2004 15:23 |
| [Typo3-UG France] Création de typolink | Pierre ROUWENS | typo3-france@lists.netfielders.de | 0 | 28.12.2004 13:42 |