[TYPO3-commerce] target attrbute for product links
Tapio Markula
tapio.markula at atwebteam.com
Fri Feb 9 10:48:03 CET 2007
Volker Graubaum kirjoitti:
> Hi,
>
>> If I would need it now, could you have some ide how to implement.
> Have a look in the piBase and the pi1 in the commerce lib/pi1 folder.
> There a few singleLink functions,
> Define a TS Conf value, and use it there and provide a patch :-).
>
> Another way: use the additionalMarker hooks and create your own link
> Marker
>
> Greetings Volker
In fact I have looked those from pi1/class.tx_commerce_pi1.php and I found
/**
* Build the link to the category
* TODO make it possible to have more than one link, to each of the
productCategories
*/
$linkContent=$this->cObj->getSubpart($content,'###CATEGORY_ITEM_DETAILLINK###');
$link=$this->pi_linkTP_keepPIvars($linkContent,array('catUid'=>$catObj->get_uid()),$cache=0,$clearAnyway=0);
$content=$this->cObj->substituteSubpart($content,'###CATEGORY_ITEM_DETAILLINK###',$link);
that is quite the same as in pibase class
$linkContent=$this->cObj->getSubpart($categoryOutput,'###CATEGORY_ITEM_DETAILLINK###');
$link=$this->pi_linkTP_keepPIvars($linkContent,array('catUid'=>$oneCategory->getUid()),$cache=0,$clearAnyway=0);
$categoryOutput=$this->cObj->substituteSubpart($categoryOutput,'###CATEGORY_ITEM_DETAILLINK###',$link);
but I'm not familiar with pi-files
(I have done much work with BE-layout and generic frontend editing
features) and I don't catch how and where to add new configurations
configuration of pi-files is totally new area for me (I know TS config
for pages and users/user groups + basic configuration using
ext_template.txt and related configuration arrays).
More information about the TYPO3-project-commerce
mailing list