[TYPO3-commerce] Link the article picture to the product detail view

Christian christian at typo3journal.info
Wed Aug 27 09:54:14 CEST 2008


hello Morten,
Thanks for your response.
I made a mistake sorry.
I'm trying to link the article title to the product. We expect to list 
all articles from a page and then let the customer see the product 
details when he clicks on the picture or on the title.
Here is what I did for the title

lib.tx_commerce.articles.fields {
    title >
    title {
        stdWrap.typolink.parameter = 117
        stdWrap.typolink.additionalParams.dataWrap = 
&tx_commerce_pi1[showUid]=
        stdWrap.typolink.useCacheHash = 1
}

}

I get this :
http://www.domain.com/index.php?id=117&tx_commerce_pi1[showUid]=&cHash=4442f25ef7

Of course, showUid is empty :(

Thanks


Morten Olesen wrote:
> Hey Christian,
>
> Unless I've misread your post - this is what you want;
>
> search for "How do I link the teaser image to the product page?" in
> the commerce wiki ( http://wiki.typo3.org/index.php/EXT/commerce/manual )
>
> /Morten Olesen
>
> christian wrote:
>   
>> Hello,
>> Here is my ###CATEGORY_ITEMS_LISTVIEW_2### subpart :
>>
>> <!-- ###CATEGORY_ITEMS_LISTVIEW_2### begin-->
>>
>> 	<!-- ###PRODUCT_BASKET_FOR_LISTVIEW### -->
>> 	
>> 		<!-- ###ARTICLE_VIEW### -->
>> 		<li>###ARTICLE_IMAGES###
>> 		<form name="###ARTICLE_FORMNAME###" action="###ARTICLE_FORMACTION###"
>> method="post">
>> 		###ARTICLE_HIDDENCATUID###
>> 		###ARTICLE_HIDDENFIELDS###
>> 		<span> 
>> 		   ###ARTICLE_TITLE###
>> 			###ARTICLE_SELECT_ATTRIBUTES###
>> 			###ARTICLE_PRICE_GROSS###
>> 		</span>
>> 		<input type="image" value="Add to basket"
>> src="fileadmin/templates/pics/add_basket.jpg" /></li>
>> 		</form>	
>> 		<!-- ###ARTICLE_VIEW### -->
>> 		
>> 		<!-- ###ARTICLE_VIEW_NOSTOCK### --> 
>> 		[...]
>> 	<!-- ###ARTICLE_VIEW_NOSTOCK### -->
>> 	<!-- ###PRODUCT_BASKET_FOR_LISTVIEW### -->
>> <!-- ###CATEGORY_ITEMS_LISTVIEW_2### end -->
>>
>> I'd like to make a link to the product view in the article subpart to
>> link for instance the article picture to its product.
>>
>> What i tried to do :
>>
>> lib.tx_commerce.articles.fields {
>> title >
>> title = stdWrap
>> title {
>> #
>> # Here i'm lost :'(
>> #
>> typolink.parameter = ???
>> wrap = |
>> }
>>
>> }
>>
>> plugin.tx_commerce_pi1.singleView.articles.fields.title <
>> lib.tx_commerce.articles.fields.title
>>
>> Can someone help me please ?
>> Thanks
>>
>>     
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
>   



More information about the TYPO3-project-commerce mailing list