---
title: "Realurl postVarSets prevValueInList"
url: "https://www.typo3.net/d/105509-realurl-postvarsets-prevvalueinlist"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2011-05-22"
last_reply: "2011-05-22"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Realurl postVarSets prevValueInList

Extensions · 0 Antworten · gestartet 2011-05-22

## Eröffnungsbeitrag

**hauke_** · 2011-05-22 · [Beitrag #1](https://www.typo3.net/d/105509-realurl-postvarsets-prevvalueinlist/1)

Hallo!
Ich habe eine Extension die im wesentlichen 2 Parameter hat:
act und id:

tx_nfmmioffers_pi1[act]=details&tx_nfmmioffers_pi1[id]=1
tx_nfmmioffers_pi1[act]=booking&tx_nfmmioffers_pi1[id]=1

im ersten Fall mit act=details bezieht sich auf ein Seminar, das Buchen auf eine spez. Veranstaltung. Je nach Parameter "act" soll für die id aus der Seminar-Tabelle kommen, oder aus der Veranstaltungstabelle.

Was mache ich falsch? Wenn ich die zweite cond hinzufüge, geht das decoden nicht mehr.

Hat wer Erfahrung damit?

Grüße, Hauke

```typoscript
'offer'=>array(
	//action
	array(
		'GETvar' => 'tx_nfmmioffers_pi1[act]',					
	),
	//ID OFFER

	array(
		'cond' => array (
			'prevValueInList' => 'detail'
		),
		'GETvar' => 'tx_nfmmioffers_pi1[id]',
		'lookUpTable' => array(
			'table'				=> 'tx_nfmmioffers_offers',
			'id_field'			=> 'uid',
			'alias_field'		=> 'name',
			'addWhereClause'	=> ' AND NOT deleted',
			'maxLength'			=> '50',
			'useUniqueCache'	=> 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '_',
			),
		),
	),
	
	array(
		'cond' => array (
			'prevValueInList' => 'booking'
		),
		'GETvar' => 'tx_nfmmioffers_pi1[id]',
		'lookUpTable' => array(
			'table'				=> 'tx_nfmmioffers_events',
			'id_field'			=> 'uid',
			'alias_field'		=> 'name',
			'addWhereClause'	=> ' AND NOT deleted',
			'maxLength'			=> '50',
			'useUniqueCache'	=> 1,
			'useUniqueCache_conf' => array(
				'strtolower' => 1,
				'spaceCharacter' => '_',
			),
		),
	),
),
```

---

Quelle: „Realurl postVarSets prevValueInList“, typo3.net, https://www.typo3.net/d/105509-realurl-postvarsets-prevvalueinlist
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
