[TYPO3-shop] tt_products & lightbox

Bert Hiddink hiddink at bendoo.com
Fri Apr 25 18:05:01 CEST 2008


Hello!

I installed "pmk_slimbox" and found a nice TS-snippet at this page:
http://typo3.org/documentation/document-library/extension-manuals/pmkslimbox/2.1.0/view/1/4/

5 seconds later:
#Test Bert para agregar lightbox a tt_products
plugin.tt_products.image.imageLinkWrap = 1
plugin.tt_products.image.imageLinkWrap {
         enable = 1
         # Add new typolink wrapping code
         typolink {
                 # Set the title of the A tag, which is used as caption 
inside the Lightbox
                 title.field = {$plugin.pmkslimbox.tt_products.captionField}
                 title.split.token.char = 10
                 title.split.returnKey.data = register : IMAGE_NUM_CURRENT
                 # This returns a link, pointing to the path + name of 
the original image.
                 # or to the path + name of the resized lightbox image 
(if maxH or maxW is reached.)
                 parameter.cObject = IMG_RESOURCE
                 parameter.cObject.file.import.data = 
TSFE:lastImageInfo|origFile
                 parameter.cObject.file.maxW = 
{$plugin.pmkslimbox.slimBoxMaxW}
                 parameter.cObject.file.maxH = 
{$plugin.pmkslimbox.slimBoxMaxH}
                 # Add the "rel" attribute needed to activate the 
lightbox effect.
                 ATagParams = rel="lightbox"
                 ATagParams.override = rel="lightbox[sb{field:uid}]"
                 ATagParams.override.if.isTrue = 
{$plugin.pmkslimbox.tt_products.navigable}
                 ATagParams.insertData = 1
         }
}

...and here it was!!!

Please make sure that the respective constants do exists for tt_producs


Thanks Peter!!!

Cheers!


Bert Hiddink wrote:
> Hello!
> 
> Anyone done something on tt_products & lightbox to show several images 
> in List-view or Single-view?
> 
> Please let me know if you have any pointers!
> 
> Thanks in advance!
> 
> -brt
> 

-- 


Vriendelijke groeten / Best regards / Saludos cordiales,

Bert Hiddink

---------------------
BENDOO e-work solutions
http://www.bendoo.nl
hiddink at bendoo.nl
---------------------



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