[TYPO3-shop] fetching image - single view

Franz Holzinger franz at fholzinger.com
Wed Dec 6 15:20:18 CET 2006


Andrea Giorgini a écrit :
> Hi,
> 
> I am trying to fetch the product image:
> 
> temp.PIM = CONTENT
> temp.PIM {
> 	table = tt_products
> 	wrap = |
> 	select {
> 		pidInList = 24,28
> 		# Set the language field
>     		#languageField=sys_language_uid
>         	selectFields = image
>         	where = uid=GPvar:tt_products
>         }
>         renderObj=COA
>   	renderObj {
>     		5=IMAGE
>     		5{
> 			# only output it if not empty
> 			#required=1
> 			wrap=|
> 			file.import=uploads/pics/
> 			file.import.field=image
> 			file.width=100
> 			file.height=100
> 		}
> 	}
> }
> 
> I guess the problem is the where clause.
> How can I do that?
> 
The correct parameter is tx_ttproducts_pi1[product].


- Franz



More information about the TYPO3-project-tt-products mailing list