[TYPO3-shop] backPID in Single view / custom markers?

Richard Hirner richard at hirner.at
Thu Feb 21 14:09:37 CET 2008


Hello,

On Tue, 27 Nov 2007 11:00:07 +0100, Franz Holzinger wrote:
>> I can see in the url that the backPID is set correct, but when i hover
>> the "Back to list link" in the Single view mode, i get the Single view
>> page, result is a blank page(PIDitemDisplay).
>> [...]

> If you use the subpart <!--###LINK_ITEM###--> to link back to the list,
> then this works only with clickIntoBasket=1 for tt_products 2.5.3

I found a nice solution for this:
http://www.typo3forum.net/forum/tt_products/25438-r-ckweg-single-view-
funktioniert.html

They add a new marker ###LINK_BACK###. In my case, I had to write

$wrappedSubpartArray['###LINK_BACK###'] = array('<a href="'.$this->pibase-
>pi_getPageLink($this->conf["PIDlistDisplay"],'',$this->marker-
>getLinkParams('',array("tx_ttproducts_pi1[cat]" => $row
["category"]),true), array('useCacheHash' => true)) .'">','</a>');

Because I wanted to use PIDlistDisplay instead of PIDback and the 
category should be passed, too (because I want to display only one 
category at once in the list view).


I think it would be very cool if tt_products would provide these markers 
by default, and/or - even better - a way how to define markers without 
having to change the ext. code. Maybe there could be a PHP included in 
every view just before printing the content? This PHP could replace some 
markers, e.g. ###LINK_BACK### by the needed HTML

-- 
Richard Hirner


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