[TYPO3] Typoscript to render images from Media field

JoH asenau info at cybercraft.de
Tue Nov 27 00:20:48 CET 2007


> I need a little help with displaying/rendering images from the page
> media field. I would like to render all images that are defined but I
> do not know how to dynamically set the file property of the IMAGE
> cObject.
>
> this is my current typoscript:
>
> QUOTES = COA
> QUOTES {
>
> 10 = COA
> 10 {
>
> 20 = TEXT
> 20 {
> data = levelmedia : -1 , slide
> split {
> token = ,
> cObjNum = 1
>
> 1 = IMAGE
> 1 {
> current = 1
        ^^^^
remove this line
> file = (HOW can I insert uploads/media + current item here?)

file.import = uploads/media/
file.import.current = 1

should do the job

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com




More information about the TYPO3-english mailing list