[Typo3] Typoscript: getting full path (using realurl)

Peter Klein peter at umloud.dk
Thu Feb 3 14:32:49 CET 2005


"Rodrigo Cea" <typo3list at ejez.cjb.net> skrev i en meddelelse 
news:mailman.1.1107434935.31070.typo3-english at lists.netfielders.de...
> List:
>
> I have a typo 3.7 site, which uses speaking URLs, like: 
> www.site.com/newsletter1/etc/etc/etc
>
> I am trying to automatically set some links using the following typoscript
>
> 101 = TEXT
> 101.value = <a href="interview/">|</a>
>
> Which should, when applied to an element on "www.site.com/newsletter1/", 
> result in a link to "www.site.com/newsletter1/interview/".
>
> Unfortunately, the link actually looks like "www.site.com/interview/".
>
> Apparently, since the "real" address of any page is always 
> www.site.com/index.php, this is what is used as a base for relative links.
>
> What I am looking for is the right typoscript syntax to say "the full 
> speaking realURL of this page, plus 'interview/'".
>
> Any help is, as always, greatly appreciated.
>

Hi Rodrigo, maybe you could use something like this: (untested)


10 = COA
10 {
  10 = TEXT
  10.data = getenv:REQUEST_URI
  10.wrap = <a href="|interview/">
  20 = TEXT
  20.value = blahblah
  20.wrap = |</a>
}

-- 
Peter Klein/Umloud Untd 





More information about the TYPO3-english mailing list