[TYPO3] IMGTEXT

Peter Klein peter at umloud.dk
Thu Dec 21 18:43:56 CET 2006


Hi Tyler. you can read the media field as a TEXT field, and then split it at 
each comma, like this:

-- cut --
lib.images = COA
lib.images {
  10 = TEXT
  10.data = page:media
  10.split {
    token = ,
    cObjNum = 1
    1 {
     10 = IMAGE
     10.file.import.current = 1
     10.file.import = uploads/media/
    }
  }
}
-- cut --

The above code will show all the images attached to the media field of the 
page..

--
Peter Klein / Umloud Untd


"Tyler Kraft" <headhunterxiii at yahoo.ca> wrote in message 
news:mailman.1.1166710886.23387.typo3-english at lists.netfielders.de...
> Hi
>
> Need a little help here... I'm probably just overlooking something minor.
>
> I want to be able to upload images to the media field of the page, and 
> then render them. I have no problem doing one image or multiple images 
> using the IMAGE type and the listNum. But...
>
> What I really want to do is something like the IMGTEXT where I can use the 
> imgList property. And I have this working but the html generated is crap 
> (verbose tables and clear.gif junk). Is there anyway to do this with out 
> using IMGTEXT or using IMGTEXT but with better markup?
>
> Basically all I want is to give a list of images from the pages media 
> field and get a list of clean <img src="blah.gif" width="70" height="70" 
> alt="" /> html.
>
> Thanks 




More information about the TYPO3-english mailing list