[TYPO3] querystring parameters in typoscript?

Nathan Lounds loundsna at msu.edu
Thu Jun 15 22:30:26 CEST 2006


I figured it out:

resources = HMENU
resources.special = keywords
resources.special {
	entryLevel = -1
	setKeywords.data = GPvar:keyword
	setKeywords.wrap = |
}

> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Nathan
Lounds
> Sent: Thursday, June 15, 2006 3:29 PM
> To: 'TYPO3 English'
> Subject: [TYPO3] querystring parameters in typoscript?
>
> Does anyone know if you can access querystring parameters in typoscript?
>
> I'm trying to create a keywords menu based on a keywords passed to the
page
> via the querystring.
>
> Here is my code so far:
>
> resources = HMENU
> resources.special = keywords
> resources.special {
>	entryLevel = -1
>	setKeywords = {$_GET['keyword']}
> }
>
> It works if I put a keyword in place of {$_GET['keyword']}.
>
> But when I go to a url like:  /index.php?id=870&keyword=CD
>
> I want it to stick CD in for the setKeywords, like:
>
> resources = HMENU
> resources.special = keywords
> resources.special {
>	entryLevel = -1
>	setKeywords = CD
> }





More information about the TYPO3-english mailing list