[TYPO3] Condition in globalVar
Livius Agrippa
livius_agrippa at yahoo.com
Wed Oct 24 15:44:49 CEST 2007
Darko Jr. Gonzalez wrote:
> [globalVar = TSFE:id > 0]&&[globalVar = TSFE:id < 11]
> lib.flash = RECORDS
> lib.flash.tables = tt_content
> lib.flash.source = 183
> [global]
>
> this means that this tt_content will appear on all pages with id>0 and id<11
> (1,2,3,4,5,6,7,8,9,10)
>
>
> [globalVar = TSFE:id = 1][globalVar = TSFE:id = 11]
> lib.flash = RECORDS
> lib.flash.tables = tt_content
> lib.flash.source = 183
> [global]
>
> Will appear on index.php?id=1 and index.php?id=11
>
> :)
>
> cool? :)
Hi Darko,
Cool but it doesn't help me.
I have this code
temp.LASTUPDATED = TEXT
temp.LASTUPDATED {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
strftime = %A, %d. %B %Y
wrap = <hr />Letzte Änderung: |
data = register : SYS_LASTCHANGED
if >
}
[globalVar = GP:L = 1]
temp.LASTUPDATED = TEXT
temp.LASTUPDATED {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
strftime = %A, %d %B %Y
wrap = <hr />Updated: |
data = register : SYS_LASTCHANGED
if >
}
[global]
How can I specify that on some pages the temp.LASTUPDATE should be empty?
I tried in this way:
[globalVar = TSFE:id = 2,3,4,5]
temp.LASTUPDATED = TEXT
temp.LASTUPDATED.data =
[global]
But right now it shows Updated: 1 Jan 1970 on all the pages.
Best regards,
Livius
More information about the TYPO3-english
mailing list