[TYPO3] realurl, typolinks and parameters (generally)
Peter Klein
peter at umloud.dk
Sat Jun 17 13:16:00 CEST 2006
Hi Paul. How about something like this?
-- cut --
10 = TEXT
#10.value = http://mypath/to/myparam.html
10.typolink.parameter.field = uid
10.typolink.returnLast = url
10.split {
token = /
cObjNum = 1 |*||*| 2
1.current = 1
1.wrap = |/
}
10.wrap = Stripped URL: |<br>
-- cut --
---
Peter Klein / Umloud Untd
"Paul Vetch" <paul at qedstudio.com> wrote in message
news:mailman.1.1150533623.2898.typo3-english at lists.netfielders.de...
> Hi,
>
> My question yesterday was way too specific so in the hope someone can
> help / has seen this problem before, I've tried to generalise it a bit.
> I'm sure there must be a way to achieve this, and that I'm being stupid.
> Situation is:
>
> * I want to use a global variable. I add an additionalParam to a
> typolink
> additionalParams = &myParam=1
> * I setup RealURL to hide it in part of the URL (as a filename) -
> http://mypath/to/myparam.html
> * I can test whether the variable is set using globalVar GP: etc. - no
> problem.
>
> If I then want to *unset* the parameter, I need a way of getting it out
> of the RealURL so that I can generate a typolink with an HREF of:
>
> http://mypath/to/
>
> If I'm on a page with a RealURL path of http://mypath/to/myparam.html
> then the returnLast = url method will always include the 'myparam.html'
> which I don't want.
>
> Question is how can I generate a Typolink *without parameters* in a
> RealURL context?
>
More information about the TYPO3-english
mailing list