[TYPO3] Conditions
Helge Vad
helge at mereteland.dk
Mon Nov 27 23:36:39 CET 2006
> I would like to show image1 if the current page id is 1 and image2 if its other pages
I usually do something like this in order to avoid nesting a condition within {..} section(s)
page.1= TEMPLATE
page.1{
..
..
subparts.image=IMAGE
subparts.image{
file = fileadmin/images/image2.gif
file.import.data = levelmedia: -1, "slide"
file.import = uploads/media/
file.import.listNum = 0
file.import.override.field = media
}
..
}
# condition changing default configuration for above image element
[PIDinRootline = 1]
page.1.subparts.image.file = fileadmin/images/image1.gif
[GLOBAL]
..
Best, Helge Vad
More information about the TYPO3-english
mailing list