[TYPO3-commerce] Solutino: commerce and perfect lightbox

Philipp Holdener philipp at holdener.ch
Fri Aug 21 13:18:35 CEST 2009


Philipp Holdener schrieb:
> Hello
> 
> How can I use the perfectlightbox in my single view?
> 
> 
> plugin.tx_commerce_pi1 {
>     singleView.products.fields {
>       images {
> 
> 
>         file.maxH = 300
>         file.maxW = 200
> 
>        # you can either copy the configuration from tt_content
>         imageLinkWrap < tt_content.20.1.imageLinkWrap
>         imageLinkWrap.enable >
>         imageLinkWrap.enable = 1
> 
> 
>         # or you can configure it for your special needs
>         imageLinkWrap = 1
>         imageLinkWrap {
>      enable = 1
>     
>     
>      wrap = <A href="javascript:close();"> | </A>
>         width = 800m
>         height = 600
>         JSwindow = 1
>         JSwindow.newWindow = 1
>         JSwindow.expand = 17,20
>         typolink.ATagParams = rel="lightbox"
> 
> 
> /*
> typolink {
> parameter.cObject = IMG_RESOURCE
> parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
> ATagParams = rel="lightbox"
> ATagParams.insertData = 1
> }
> 
> */
> 
> 
> 
> 
> 
>         }
>       }
>    }
>  }
> 
> 
> Popup (jswindow) is working fine!
> But for perfectlightbox I need rel="lightbox"
> 
> With
> 
> typolink {
> parameter.cObject = IMG_RESOURCE
> parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
> ATagParams = rel="lightbox"
> ATagParams.insertData = 1
> }
> 
> the picure opens in a new browser window :-(
> 
> The same effect in the listview would be nice!
> Now, the list image links only to the detail page.
> But I want a click-enlarge there too.
> 
> Thanks for help
> 
> Best wishes
> Philipp


plugin.tx_commerce_pi1.singleView.products.fields.images {
	# Bild anklickbar
	imageLinkWrap < tt_content.image.20.1.imageLinkWrap
	imageLinkWrap.enable >
	imageLinkWrap.enable = 1
	# Mit perfectlightbox
	imageLinkWrap.typolink {
		parameter.cObject = IMG_RESOURCE
		parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
		ATagParams = rel="lightbox"
	}
}



Thanks to Robert

Greetings
philipp





More information about the TYPO3-project-commerce mailing list