[TYPO3] Query data string data still available?

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Aug 9 07:57:28 CEST 2008


Hi!

La Farge Douglas wrote:
> In my pages I have links of the form:
> http://[snip]/content/videos/amr/faster-fashion-greater-distances/
> This URL (Made via RealURL) has no query string.
> 
> Quoting Dmitry:
>> It means that you call your script before RealURL processing. You 
>> should call it as a part of PAGE object:
>>
>> includeLibs.myscript = fileadmin/user_myscript.php
>> page.1000 = USER
>> page.1000.userFunc = user_myscript
>>
>> There you will have query string as $_SERVER['QUERY_STRING']
> 
> 
> How can I then have the Query_String?
> 
> Recall, my issue is that when a link is click we are recording that link 
> by calling a php script.

You can get query string only from inside the TYPO3. Your php script must run inside TYPO3. If it is external to TYPO3, you cannot get query string. For example, this will not work:

track.php?redirect=http://[snip]/content/videos/amr/faster-fashion-greater-distances

> PS - my latest plan is to take the URI String (in this case 
> /content/videos/amr/faster-fashion-greater-distances/) and look up the 
> related PID in one of the RealURL tables.  The problem I'm having is I 
> have yet to determine which lookup table to look in for the URI String 
> to PID relationship.

This will not work reliably because RealURL does not always cache page id in tables.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/typo3_code_formatting_in_eclipse/


More information about the TYPO3-english mailing list