[TYPO3-english] Condition to know if a variable is defined inthe URL
Stephen Bungert
stephenbungert at yahoo.de
Mon Mar 7 14:27:37 CET 2011
Try something like this:
value.data = GPvar:tx_ttnews|news
Just change the variable name to your extension
so
value.data = GPvar:tx_ext|myVar
"Enrique Moreno Tent" <enriquemorenotent at gmail.com> schrieb im Newsbeitrag
news:mailman.13190.1299503646.648.typo3-english at lists.typo3.org...
Yes. I have to go with the first option. It works ok, but it means I cant
give them negative values. still it works :)
I know its a little off-topic with the subject but, how can I set the value
of the variable to a TEXT object? value.data = ???
On Mon, Mar 7, 2011 at 12:05 PM, Marco Peemöller
<listen at goto-marco.de>wrote:
> Hello,
>
> Am 07.03.2011 12:55, schrieb Enrique Moreno Tent:
>
> > Can someone please tell me what condition should I use if i want to know
> if
> > a variable has been defined in the URL? I thiught it was something like
> > this:
> >
> > [globalVar = GP:myVar = 0]
> >
>
> Try this:
>
> [globalVar = GP:myVar > 0 ]
> #GP:myVar defined
> [ELSE]
> #GP:myVar not defined
> [global]
>
> maybe this work to, but i am not sure
>
> [globalVar = GP:myVar = ]
> #GP:myVar defined
> [global]
>
> Regards
>
> Marco
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list