[TYPO3] Typolink class for image

Gary Greer help at accurateit.com.au
Tue Jul 10 20:38:53 CEST 2007

Hello all,

I'm having trouble with this bit of code:

lib.pageBanner = IMAGE
lib.pageBanner {

  //default image
  file = fileadmin/template/img/headerimg/darts.jpg
  // override it with an image inserted in page properties in field
  file.import.data = page:media
  file.import = uploads/media/
  file.import.listNum = 1
  file.import.override.field = media
 ATagParams = class = page_banner
  border = 0
  altText = xy
  titleText = xy


It's designed to take an image from the pages media entry and insert it
into the page. So far, it works beautifully, except that I cannot get a
class allocated to the image. Can someone help?



More information about the TYPO3-english mailing list