[TYPO3-commerce] Teaser link/popup

Karsten P webdesign.karsten at gmail.com
Tue Mar 2 13:42:44 CET 2010


Hi Ingo

Just something I copy/paste from a site with snippets, in my search for 
a solution to my problem. I am not that good with TS



Ingo Schmitt skrev:
> Hi Karsten,
> 
> I'm haven't testet it, but teaserimages = stdWrap and adding a cObject = IMAGE is really strange. Why did you change it to stdWrap? Normally its IMAGES, or IMG_TEXT
> 
> Regards
> 
> ingo
>>    		teaserimages {
>>      			cObject = IMAGE
>>      			cObject {
>>        			file {
>>          				import.current = 1
>>          				maxW = 120
>>          				maxH = 120
>>        				}
>>      				}
>>
>>     			 typolink.setCommerceValues = 1
>>      			 typolink.useCacheHash = 1
>>      			 typolink.if.isTrue.current = 1
>> 		}
> 
> 
>> Hi all
>>
>> I cant seem to get the teaser image, to either link to the details page or click to enlarge. IM not that good in TS.....
>>
>> Her is my TS:
>>
>> plugin.tx_commerce_pi1 {	# Choose the view you use for teasers below:
>> listView.products.fields {
>> 		teaser >
>> 		teaser = TEXT
>> 		teaser {
>> 			setContentToCurrent = 1
>> 			# teaser
>> 			prepend = TEXT
>> 			prepend.current = 1
>>
>> 			# the more link
>> 			cObject = TEXT
>> 			cObject.value = læs mere
>> 			wrap =  |
>> 			typolink.setCommerceValues = 1
>> 			typolink.useCacheHash = 1
>> 		}
>> 		
>> 		images {
>> 			# enable click-enlarge for article image
>> 			imageLinkWrap < tt_content.image.20.1.imageLinkWrap
>> 			imageLinkWrap.enable >
>> 			imageLinkWrap.enable = 1
>> 			file.maxW = 200			
>> 			# click enlarge			
>> 			imageLinkWrap = 1
>>    			imageLinkWrap {
>>      			width = 800m
>> 		        height = 600m
>> 		        bodyTag = <body style="background:#fff;color:#000;">
>> 		        wrap = <a href="javascript:close();">|</a>
>> 		        JSwindow = 1
>> 		        JSwindow.expand = 20,20
>> 		        JSwindow.newWindow = 1
>> 		        enable = 1
>>   				     }			
>> 			# click enlarge slut			
>> 			
>> 		       }
>> 		
>> 		teaserimages >
>>   	 	teaserimages = stdWrap
>>    		teaserimages {
>>      			cObject = IMAGE
>>      			cObject {
>>        			file {
>>          				import.current = 1
>>          				maxW = 120
>>          				maxH = 120
>>        				}
>>      				}
>>
>>     			 typolink.setCommerceValues = 1
>>      			 typolink.useCacheHash = 1
>>      			 typolink.if.isTrue.current = 1
>> 		}
>> 	}
>> # click enlarge
>> plugin.tx_commerce_pi1.singleView.articles.fields.images < plugin.tx_commerce_pi1.listView.products.fields.images
>> # click enlarge slut
>>
>>
>> singleView{
>> 		products < lib.tx_commerce.products
>> 		products {
>> 			fields {
>> 				title.wrap = |
>> 				description.wrap = <div class="com-single-desc">|</div>
>> 			
>> 			        images {
>> 			                imageLinkWrap < tt_content.image.20.1.imageLinkWrap
>> 			                imageLinkWrap.enable >
>> 			                imageLinkWrap.enable = 1		
>>                                        file.maxW = 150
>>                                        }		
>> 			
>>                                 }
>> 			        	
>> 		          }
>> 		products.categories < lib.tx_commerce.categories
>> 		products.categories  {
>> 			fields {
>> 				title.wrap = <h2>|</h2>
>> 			       }
>> 	                              }
>> 	    }
>>
>> }
>> _______________________________________________
>> TYPO3-project-commerce mailing list
>> TYPO3-project-commerce at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>>
>>
> 
> 
> Mit freundlichen Gruessen
> Ingo Schmitt
> 


More information about the TYPO3-project-commerce mailing list