[Typo3] TS and conditions

Pierre Rouwens prouwens at infoglobe.ca
Sun Dec 11 22:00:38 CET 2005


Elmar ,

thanks a lot it works ... i don't really understand the why of it but it 
works :)
the first one was the good one :
----
[globalVar = GP:tx_mccfiche_pi1|d > 0]
----
the other seems not to work.

Anyway thanks a lot :)

gonna try to understand the syntax of it.

I can go ahead thanks once again :)

Pierre

> 
> I was to quick in thinking.
> 
> In TSref you find on
> http://typo3.org/documentation/document-library/doc_core_tsref/globalVars/
> 
> Syntax:
> [globalVar=   var1=value,  var2<value2, var3>value3, ...]
> 
> Mark that's without GP.
> 
> My mistake is that $tx_mccfiche_pi1[d] is no global var at all. It is
> inside the global GET/POST array.
> 
> 
> The better exampel seems to be in the bottom comments:
> 
> [globalVar = TSFE:page|tx_whatever_totoplink = 1]
> 
> 
> So try:
> 
> [globalVar = GP:tx_mccfiche_pi1|d > 0]
> bla bla
> [else]
> bla bla
> [global]
> 
> 
> or
> 
> 
> [globalVar = TSFE:page|tx_mccfiche_pi1|d > 0]
> bla bla
> [else]
> bla bla
> [global]
> 



More information about the TYPO3-english mailing list