[TYPO3] TypoScript for click-enlarge picture

Xavier Perseguers typo3 at perseguers.ch
Sun Jun 22 19:23:06 CEST 2008


Hi,

I wonder how I can create a typolink of type "click-enlarge" for a 
picture. I extracted following TS:

lib.myPicture = IMAGE
lib.myPicture.file = GIFBUILDER
lib.myPicture.file {
	XY = 60,80
	10 = IMAGE
	10.file = {$myPicture.file}
	10.file.width = 60
	10.file.height = 80
}

lib.myPicture.imageLinkWrap = 1
lib.myPicture.imageLinkWrap {
	bodyTag = <body bgcolor="black">
	wrap = <a href="javascript:close();"> | </a>
	width = {$styles.content.imgtext.linkWrap.width}
	height = {$styles.content.imgtext.linkWrap.height}
	effects = {$styles.content.imgtext.linkWrap.effects}

	JSwindow = 1
	JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
	JSwindow.expand = 17,20

	enable.field = image_zoom
	enable.ifEmpty.typolink.parameter = {$lborg.charterNight.file}
			enable.ifEmpty.typolink.parameter.listNum.stdWrap.data = register : 
IMAGE_NUM_CURRENT
	enable.ifEmpty.typolink.returnLast = url

	typolink.parameter = {$myPicture.file}
	#typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM_CURRENT
	typolink.target = {$styles.content.links.target}
	typolink.extTarget = {$styles.content.links.extTarget}
}

The picture is well resized and shown but the link does not work as I do 
not know how to specify where is my picture as it is defined as a 
resource for my extension. In fact, this is a constant and the user can 
choose which file to use.

Does someone how it should be done?

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-english mailing list