MarioProject
MarioProject

Reputation: 427

Typo3 GP variables in TSSETUP

I use typo3 7.6.10

I learn how get a url variable and store it in other variable for fluid in TSSETUP:

lib.pippomio = TEXT
lib.pippomio.data = GP:cat

example url: index.php?id=10&cat=pino

I print the variable in my template:

<f:cObject typoscriptObjectPath="lib.pippomio"  />

Ok it works.

Now i need to print the variable in input by Search Indexed Engine:

<input class="tx-indexedsearch-searchbox-sword" id="tx-indexedsearch-searchbox-sword" type="text" name="tx_indexedsearch_pi2[search][sword]" value="progetto">

How can i store in lib.pippomio the POST Variable "tx_indexedsearch_pi2[search][sword]" ???

I tried

lib.pippomio.data = GP:tx_indexedsearch_pi2[search][sword]

But it doesn't works. I want to print the word searched in an other place.

Upvotes: 1

Views: 751

Answers (1)

Markussom
Markussom

Reputation: 158

You can use a pipe "|" to get it

lib.pippomio.data = GP:tx_indexedsearch_pi2|search|sword

TYPOSCRIPT Reference => getText

Upvotes: 3

Related Questions