[TYPO3-english] Condition to know if a variable is defined inthe URL
Enrique Moreno Tent
enriquemorenotent at gmail.com
Mon Mar 7 14:36:58 CET 2011
Worked cool! Thanks :)
On Mon, Mar 7, 2011 at 1:27 PM, Stephen Bungert <stephenbungert at yahoo.de>wrote:
> 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
> >
>
>
>
> _______________________________________________
> 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