[TYPO3-commerce] Teaser link/popup
Karsten P
webdesign.karsten at gmail.com
Fri Feb 19 17:09:06 CET 2010
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>
}
}
}
}
More information about the TYPO3-project-commerce
mailing list