[Typo3-shop] Link images in list view to single view, basket links, images in single view
Franz Holzinger
franz at fholzinger.com
Sat Jul 30 08:39:50 CEST 2005
Hello Christian,
>> 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.
>
Ingenious!
Life could be so easy.
Why didn't I have this idea? ;-)
> I recognized, that tt_products does not use the official API for
> generating links, will this be improved in the future?
>
Where do I find more information about the API for creating links?
Greetings,
Franz
More information about the TYPO3-project-tt-products
mailing list