[TYPO3-english] Using IF in TypoScript

2009-07-10 Thread Redvald Hjulstad
I have a script that creates a image from the pageheader. But I would like it to only generate the image if there is a image on the mediafield. As it is now it is generating a transparent image if there is noe image in the mediafield. Here is my TS: lib.image = IMAGE lib.image { file =

Re: [TYPO3-english] Using IF in TypoScript

2009-07-10 Thread Peter Klein
Hi Redvald. ALWAYS look in TSRef. If you look at the IMAGE object, then there's no "if" property inside the "file"property, where you have placed your "if". Looking at TSRef for the IMAGE object, you can see that there's an "if" property on the toplevel of the object. So you should be able to do

Re: [TYPO3-english] Using IF in TypoScript

2009-07-11 Thread Redvald Hjulstad
I have now tried lib.image.if.isTrue.data = {page:media} in every way I can think of, but get the same results as before... red On 2009-07-10 15:08:39 +0200, Peter Klein said: > Hi Redvald. > > ALWAYS look in TSRef. If you look at the IMAGE object, then there's no > "if" property inside the "f

Re: [TYPO3-english] Using IF in TypoScript

2009-07-13 Thread Tomas Mrozek
lib.image.if.isTrue.data = page:media ...that is without the brackets. ...or maybe better... lib.image.if.isTrue.data = levelmedia: -1,slide ...as you use it anyway to get the image. Tomas Mrozek ___ TYPO3-english mailing list TYPO3-english@lists.netf

Re: [TYPO3-english] Using IF in TypoScript

2009-07-13 Thread Redvald Hjulstad
On 2009-07-13 10:17:27 +0200, Tomas Mrozek said: > lib.image.if.isTrue.data = levelmedia: -1,slide Thank you Thomas, removing the brackets did it. red ___ TYPO3-english mailing list TYPO3-english@lists.netfielders.de http://lists.netfielders.de/cgi-