[TYPO3] Re: [TYPO3-shop] tt_products & lightbox (pmkslimbox)
Bert Hiddink
hiddink at bendoo.com
Wed Apr 30 22:09:49 CEST 2008
Hello!
In follow-up to my previous message, I got this:
#Add lightbox (pmkslimbox) to tt_products
plugin.tt_products.image {
imageLinkWrap = 1
imageLinkWrap {
enable = 1
typolink {
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
parameter.cObject.file.maxW = 800
parameter.cObject.file.maxH = 600
ATagParams = rel="lightbox"
ATagParams.override = rel="lightbox[sb{field:uid}]" title="{page:title}"
ATagParams.override.if.isTrue = 1
ATagParams.insertData = 1
}
}
}
The above works fine: it gives me the product-title (tt_products-table)
in the title-tag. However, if I change this to title="{page:price}" or
other product-field, I do not get anything.
Any ideas what I am doing wrong here?
Thanks in advance!
grt,
-brt
--
Vriendelijke groeten / Best regards / Saludos cordiales,
Bert Hiddink
---------------------
BENDOO e-work solutions
http://www.bendoo.nl
hiddink at bendoo.nl
---------------------
Bert Hiddink wrote:
> 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
>>
>
More information about the TYPO3-english
mailing list