[TYPO3] Typolink class for image

Uschi Renziehausen typo3news at otherone.de
Mon Jul 9 21:03:14 CEST 2007


Hi Gary,
This might not be of much help, but is there perhaps a div.pageBanner or 
so surrounding this image? In this case you could give it a class via 
context selectors in your css:

div.pageBanner img {your styles here}

Ciao, Uschi



Gary Greer wrote:
> 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?
> 
> Thanks.
> 
> Gary
> 


More information about the TYPO3-english mailing list