[Typo3-shop] Link images in list view to single view, basket links, images in single view

Christian Buelter buelter at kennziffer.com
Wed Jul 27 09:47:45 CEST 2005


Franz Holzinger schrieb:
> Hello Christian,
> 
>>
>> I have a few more questions:
>>
>> I want to link the images in list view to the single view page of the 
>> product. Where can I add that link?
>>
>> In basket view, the product titles have links, but they only refer to 
>> the same (basket) page. Although they have the correct tt_products 
>> parameter. How can I make them link to the real product page?
> 
> In the next version of tt_products there will be an extended 
> PIDitemDisplay.
> 
> The pid for the single display can be set using a where clause:
> 
> PIDitemDisplay {
> 10.where = color=red
> 10.pid = 142
> 20.where = color=white
> 20.pid = 143
> }

That didn't work for me.

But the hint with PIDitemDisplay was good.

In the function "getBasket" I changed the line

> 	$wrappedSubpartArray["###LINK_ITEM###"]=array('<A href="'.$this->getLinkUrl($this->conf["PIDitemDisplay"]).'&tt_products='.$row["uid"].'">','</A>');

into

> 		// Link to the PID of the product
> 	$wrappedSubpartArray["###LINK_ITEM###"]=array('<A href="'.$this->getLinkUrl($row['pid']).'&tt_products='.$row["uid"].'">','</A>');

So every product title in the basket is linked to its PID.

I recognized, that tt_products does not use the official API for 
generating links, will this be improved in the future?

> 
> 
>>
>> There still is the bug that only the first image is getting displayed 
>> in single view, more images are ignored. Any hint for me how to fix that?
>>
> You have to set limitImage=5 or your number of images.

That works, thanks!
> 
> 
> Franz

Greetings,

Christian



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