[TYPO3-templavoila] FCE - link images to header_link

Ian Solo ian at webian.it
Tue Dec 2 06:55:41 CET 2008


Solution:

---------------------------------------------------------------------
lib.fce_dam_image < tt_content.image.20

lib.fce_dam_image {
	imgList.cObject {
		refField = field_image
		userFunc = tx_damtvc_tsfe->fetchFileList
	}
	1 {
		altText.field = field_caption
	  	altText.split.token.char = 10
		altText.split.returnKey.data = register : IMAGE_NUM_CURRENT
		
	    imageLinkWrap >
	    imageLinkWrap = 1
		imageLinkWrap {
			enable = 1
			enable.if {
				value = 1
				isLessThan.field = field_linkimage
				isFalse.field = field_enlarge
				negate = 1
			}
	        typolink {
				parameter.cObject = IMG_RESOURCE
				parameter.cObject.file.import.data = TSFE:lastImageInfo|origFile
				
				parameter.override.data = register : 
tx_templavoila_pi1.parentRec.header_link
				parameter.override.if.isTrue.field = field_linkimage
				parameter.override.if.isFalse.field = field_enlarge
				
				title.field = field_caption
				title.split.token.char = 10
				title.split.returnKey.data = register : IMAGE_NUM_CURRENT
				
				ATagParams.data = register : tx_templavoila_pi1.parentRec.uid
				ATagParams.wrap = rel="lightbox[|]" class="lightbox"
				ATagParams.insertData = 1
				ATagParams.if.isTrue.field = field_enlarge
	        }
	    }
	}
	caption {
		1 = TEXT
		1 {
			field = field_caption
		}
	}
}
---------------------------------------------------------------------

Cheer!ian

Ian Solo wrote:
> It works but I need to eliminate the field_linkurl and link the image to 
> the link of the tt_content header. So I don't have to set the link twice 
> (in field_linkurl and in header_link).


More information about the TYPO3-project-templavoila mailing list