Hi Matthias. The Typoscript for tt_content is very special, as it checks if Click_enlarge is enabled (which you don't need) and if it should use lightbox or a regular link. You should take a look at the static tt_news setup, which is a bit simpler. So your code should look something like this:
-- cut -- ### TS code ### videoImageProc = IMAGE videoImageProc.file.width = 200 videoImageProc { imageLinkWrap > imageLinkWrap = 1 imageLinkWrap { enable = 1 # Add new typolink wrapping code typolink { # 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 = {$styles.content.imgtext.slimbox.maxW} parameter.cObject.file.maxH = {$styles.content.imgtext.slimbox.maxH} # 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.tt_news.slimbox.navigable} ATagParams.insertData = 1 } } } -- cut -- -- Peter Klein/Umloud Untd "Matthias Stuebner" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > On Tue, 10 Apr 2007 09:06:12 +0200, Peter Klein wrote: > >>> Can I use it with images in my extension too, as I can with the >>> lightbox? >> >> Sure. > > The extension works great (Thanx) and that sound fine too, but could you > give one more hint on the following please? > > Actually I render an image in my extension as follows: > > function scaleImage($imgPath) { > $paramArray = $this->conf['videoImageProc.']; > $paramArray['file'] = $imgPath; > > return $this->cObj->IMAGE($paramArray); > } > > and that allows to configure it using TypoScript, using your TS code (see > below). But it doesn't behave as expected, doesn't even react on clicks. > > Thanx in advance > > ### TS code ### > videoImageProc = IMAGE > videoImageProc.file.width = 200 > > videoImageProc { > imageLinkWrap > > imageLinkWrap = 1 > imageLinkWrap { > > enable.field = image_zoom > enable.ifEmpty.typolink.parameter.field = image_link > enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : > IMAGE_NUM_CURRENT > enable.ifEmpty.typolink.returnLast = url > > # Add new typolink wrapping code > typolink { > target = {$styles.content.links.target} > extTarget = {$styles.content.links.extTarget} > > parameter.cObject = IMG_RESOURCE > parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile > parameter.cObject.file.maxW = {$styles.content.imgtext.slimbox.maxW} > parameter.cObject.file.maxH = {$styles.content.imgtext.slimbox.maxH} > > # Except if the linkfield is not empty > parameter.override.field = image_link > parameter.override.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT > parameter.override.if.isTrue.field = image_link > > # Add the "rel" attribute needed to activate the lightbox effect. > ATagParams = rel="lightbox" > ATagParams.override = rel="lightbox[sb{field:uid}]" > ATagParams.override.if.isTrue = $styles.content.imgtext.slimbox.navigable} > ATagParams.insertData = 1 > ATagParams.if.isTrue.field = image_zoom > > } > } > } > -- > br Matthias _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english