[TYPO3-commerce] Howto: link teaser image to article detail view?

Franz Koch typo.removeformessage at fx-graefix.de
Fri Oct 19 11:40:00 CEST 2007


Hi Marcel,

> The subject pretty much covers my question.
> I have a nice looking article list with teaser images and right next to it 
> the
> article title which is linked to the detail view of the article. Now i would 
> like
> to link the teaser image to the same destination as the title is per 
> default.
> Is this somehow possible by TypoScript or changes in the HTML template?
> I don't want to change PHP sources or create an extension just for this 
> little
> improvement...

The answer is TypoScript. Something like:

-----
plugin.tx_commerce_pi1.listView.products {
	teaserimages >
	teaserimages = stdWrap
	teaserimages {
		cObject = IMAGE
		cObject {
			file {
				import = uploads/tx_commerce/
				import.current = 1
				width = xy
				height = xy
			}
		}
		
		typolink.setCommerceValues = 1
		typolink.useCacheHash = 1
		typolink.if.isTrue.current = 1
	}
}
-----

not tested - but should do the trick.

--
Greetings,
Franz


More information about the TYPO3-project-commerce mailing list