[Typo3] Import an image

media.res | alex widschwendter a.widschwendter at mediares.at
Thu Apr 7 10:33:35 CEST 2005


hi roger,

> I am trying to import an image from the media field of a page into 
> subpart markers similar to the example in TS by Example where the page 
> resource is loaded into the background.
> 
> this is the TS:
> 
> page.bgImg.import {
>   cObject = TEXT
>   cObject.value = fileadmin/tsbyex/alligator.jpg
>   cObject.override {
>     required = 1
>     field = media
>     listNum = 0
>     wrap = uploads/media/ |
>   }
> }
> page.bgImg.width = 200

lib.image = TEXT
lib.image {
      value = <img src="fileadmin/images/cutout.jpg" border="0" />
      override {
        required = 1
        data = levelmedia: -1, "slide"
        wrap = <img src="uploads/media |" border="0" />
        listNum = 0
      }
}

subparts.MARKER < lib.image

hth alex



More information about the TYPO3-english mailing list