TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-dev@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 03.02.2007, 19:15
Daniel Brüßler
Gast
 
Beiträge: n/a
Standard [TYPO3-dev] typolink with #anchor

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Sponsored Links
  #2  
Alt 03.02.2007, 19:35
Elmar Hinz
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] typolink with #anchor

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 03.02.2007, 19:39
Daniel Brüßler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] typolink with #anchor

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 15.02.2007, 09:22
Thorsten Kahler
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-dev] typolink with #anchor

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:02 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103